From 6fcbee162d5ad383a8c5638345773d0a7ed9d0e9 Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Fri, 14 Aug 2026 17:31:35 -0700
Subject: [PATCH] chore: regenerate networkservices client
---
.../v1/2.0.0/README.md | 4 +-
.../networkservices/v1/NetworkServices.java | 7559 ++++++++++-------
.../v1/model/AgentConnectivityTemplate.java | 51 +
.../v1/model/ExtensionBinding.java | 372 +
.../model/ExtensionBindingMatchCondition.java | 69 +
...nsionBindingMatchConditionHeaderMatch.java | 90 +
...nsionBindingMatchConditionStringMatch.java | 180 +
.../ExtensionBindingMatchConditionTo.java | 105 +
...ionBindingMatchConditionToDestination.java | 177 +
...gMatchConditionToDestinationHeaderSet.java | 78 +
.../v1/model/ExtensionBindingTarget.java | 105 +
.../v1/model/ExtensionBindingTargetScope.java | 90 +
.../model/ListExtensionBindingsResponse.java | 135 +
.../model/ListProducerExtensionsResponse.java | 129 +
.../v1/model/ProducerExtension.java | 247 +
.../ProducerExtensionExtensionSettings.java | 138 +
.../v1/2.0.0/pom.xml | 4 +-
.../v1/README.md | 4 +-
18 files changed, 6504 insertions(+), 3033 deletions(-)
create mode 100644 clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBinding.java
create mode 100644 clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchCondition.java
create mode 100644 clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionHeaderMatch.java
create mode 100644 clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionStringMatch.java
create mode 100644 clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionTo.java
create mode 100644 clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionToDestination.java
create mode 100644 clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionToDestinationHeaderSet.java
create mode 100644 clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingTarget.java
create mode 100644 clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingTargetScope.java
create mode 100644 clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ListExtensionBindingsResponse.java
create mode 100644 clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ListProducerExtensionsResponse.java
create mode 100644 clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ProducerExtension.java
create mode 100644 clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ProducerExtensionExtensionSettings.java
diff --git a/clients/google-api-services-networkservices/v1/2.0.0/README.md b/clients/google-api-services-networkservices/v1/2.0.0/README.md
index 214db69e05f..29cbe03ec70 100644
--- a/clients/google-api-services-networkservices/v1/2.0.0/README.md
+++ b/clients/google-api-services-networkservices/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
The typical use is:
*
* {@code NetworkServices networkservices = new NetworkServices(...);}
- * {@code NetworkServices.Gateways.List request = networkservices.gateways().list(parameters ...)}
+ * {@code NetworkServices.ExtensionBindings.List request = networkservices.extensionBindings().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Gateways gateways() {
- return new Gateways();
+ public ExtensionBindings extensionBindings() {
+ return new ExtensionBindings();
}
/**
- * The "gateways" collection of methods.
+ * The "extensionBindings" collection of methods.
*/
- public class Gateways {
+ public class ExtensionBindings {
/**
- * Creates a new Gateway in a given project and location.
+ * Creates a new `ExtensionBinding` resource in a given project and location.
*
- * Create a request for the method "gateways.create".
+ * Create a request for the method "extensionBindings.create".
*
* This request holds the parameters needed by the networkservices server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
- * @param parent Required. The parent resource of the Gateway. Must be in the format `projects/locations`.
- * @param content the {@link com.google.api.services.networkservices.v1.model.Gateway}
+ * @param parent Required. The parent resource of the `ExtensionBinding` resource. Must be in the format
+ * `projects/{project}/locations/{location}`.
+ * @param content the {@link com.google.api.services.networkservices.v1.model.ExtensionBinding}
* @return the request
*/
- public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.Gateway content) throws java.io.IOException {
+ public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.ExtensionBinding content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
@@ -5696,15 +5697,15 @@ public Create create(java.lang.String parent, com.google.api.services.networkser
public class Create extends NetworkServicesRequest* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. A name of the Gateway to get. Must be in the format `projects/locations/gateways`. + * @param name Required. A name of the `ExtensionBinding` resource to get. Must be in the format + * `projects/{project}/locations/{location}/extensionBindings/{extension_binding}`. * @since 1.13 */ protected Get(java.lang.String name) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.Gateway.class); + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ExtensionBinding.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/extensionBindings/[^/]+$"); } } @@ -6077,27 +6101,28 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. A name of the Gateway to get. Must be in the format - * `projects/locations/gateways`. + * Required. A name of the `ExtensionBinding` resource to get. Must be in the format + * `projects/{project}/locations/{location}/extensionBindings/{extension_binding}`. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. A name of the Gateway to get. Must be in the format `projects/locations/gateways`. + /** Required. A name of the `ExtensionBinding` resource to get. Must be in the format + `projects/{project}/locations/{location}/extensionBindings/{extension_binding}`. */ public java.lang.String getName() { return name; } /** - * Required. A name of the Gateway to get. Must be in the format - * `projects/locations/gateways`. + * Required. A name of the `ExtensionBinding` resource to get. Must be in the format + * `projects/{project}/locations/{location}/extensionBindings/{extension_binding}`. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/extensionBindings/[^/]+$"); } this.name = name; return this; @@ -6109,15 +6134,15 @@ public Get set(String parameterName, Object value) { } } /** - * Lists Gateways in a given project and location. + * Lists `ExtensionBinding` resources in a given project and location. * - * Create a request for the method "gateways.list". + * Create a request for the method "extensionBindings.list". * * This request holds the parameters needed by the networkservices server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The project and location from which the Gateways should be listed, specified in the format - * `projects/locations`. + * @param parent Required. The project and location from which the `ExtensionBinding` resources should be listed, + * specified in the format `projects/{project}/locations/{location}`. * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -6126,29 +6151,29 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends NetworkServicesRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The project and location from which the Gateways should be listed, specified in the format - * `projects/locations`. + * @param parent Required. The project and location from which the `ExtensionBinding` resources should be listed, + * specified in the format `projects/{project}/locations/{location}`. * @since 1.13 */ protected List(java.lang.String parent) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListGatewaysResponse.class); + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListExtensionBindingsResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -6223,22 +6248,22 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The project and location from which the Gateways should be listed, specified - * in the format `projects/locations`. + * Required. The project and location from which the `ExtensionBinding` resources should + * be listed, specified in the format `projects/{project}/locations/{location}`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The project and location from which the Gateways should be listed, specified in the - format `projects/locations`. + /** Required. The project and location from which the `ExtensionBinding` resources should be listed, + specified in the format `projects/{project}/locations/{location}`. */ public java.lang.String getParent() { return parent; } /** - * Required. The project and location from which the Gateways should be listed, specified - * in the format `projects/locations`. + * Required. The project and location from which the `ExtensionBinding` resources should + * be listed, specified in the format `projects/{project}/locations/{location}`. */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -6250,41 +6275,42 @@ public List setParent(java.lang.String parent) { return this; } - /** Maximum number of Gateways to return per call. */ + /** Optional. Maximum number of `ExtensionBinding` resources to return per call. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Maximum number of Gateways to return per call. + /** Optional. Maximum number of `ExtensionBinding` resources to return per call. */ public java.lang.Integer getPageSize() { return pageSize; } - /** Maximum number of Gateways to return per call. */ + /** Optional. Maximum number of `ExtensionBinding` resources to return per call. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * The value returned by the last `ListGatewaysResponse` Indicates that this is a - * continuation of a prior `ListGateways` call, and that the system should return the next - * page of data. + * Optional. The value returned by the last `ListExtensionBindingsResponse` Indicates that + * this is a continuation of a prior `ListExtensionBindings` call, and that the system + * should return the next page of data. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** The value returned by the last `ListGatewaysResponse` Indicates that this is a continuation of a - prior `ListGateways` call, and that the system should return the next page of data. + /** Optional. The value returned by the last `ListExtensionBindingsResponse` Indicates that this is a + continuation of a prior `ListExtensionBindings` call, and that the system should return the next + page of data. */ public java.lang.String getPageToken() { return pageToken; } /** - * The value returned by the last `ListGatewaysResponse` Indicates that this is a - * continuation of a prior `ListGateways` call, and that the system should return the next - * page of data. + * Optional. The value returned by the last `ListExtensionBindingsResponse` Indicates that + * this is a continuation of a prior `ListExtensionBindings` call, and that the system + * should return the next page of data. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; @@ -6297,18 +6323,19 @@ public List set(String parameterName, Object value) { } } /** - * Updates the parameters of a single Gateway. + * Updates the parameters of the specified `ExtensionBinding` resource. * - * Create a request for the method "gateways.patch". + * Create a request for the method "extensionBindings.patch". * * This request holds the parameters needed by the networkservices server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Identifier. Name of the Gateway resource. It matches pattern `projects/locations/gateways/`. - * @param content the {@link com.google.api.services.networkservices.v1.model.Gateway} + * @param name Identifier. Name of the `ExtensionBinding` resource in the following format: + * `projects/{project}/locations/{location}/extensionBindings/{extension_binding}`. + * @param content the {@link com.google.api.services.networkservices.v1.model.ExtensionBinding} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.Gateway content) throws java.io.IOException { + public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.ExtensionBinding content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; @@ -6319,12 +6346,12 @@ public class Patch extends NetworkServicesRequestThe typical use is:
+ *
+ * {@code NetworkServices networkservices = new NetworkServices(...);}
+ * {@code NetworkServices.Gateways.List request = networkservices.gateways().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Gateways gateways() {
+ return new Gateways();
+ }
+
+ /**
+ * The "gateways" collection of methods.
+ */
+ public class Gateways {
+
/**
- * An accessor for creating requests from the RouteViews collection.
+ * Creates a new Gateway in a given project and location.
*
- * The typical use is:
- *
- * {@code NetworkServices networkservices = new NetworkServices(...);}
- * {@code NetworkServices.RouteViews.List request = networkservices.routeViews().list(parameters ...)}
- *
+ * Create a request for the method "gateways.create".
*
- * @return the resource collection
+ * This request holds the parameters needed by the networkservices server. After setting any
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The parent resource of the Gateway. Must be in the format `projects/locations`.
+ * @param content the {@link com.google.api.services.networkservices.v1.model.Gateway}
+ * @return the request
*/
- public RouteViews routeViews() {
- return new RouteViews();
+ public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.Gateway content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
}
- /**
- * The "routeViews" collection of methods.
- */
- public class RouteViews {
+ public class Create extends NetworkServicesRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. Name of the GatewayRouteView resource. Formats: - * projects/{project_number}/locations/{location}/gateways/{gateway}/routeViews/{route_view} - * @return the request + * @param parent Required. The parent resource of the Gateway. Must be in the format `projects/locations`. + * @param content the {@link com.google.api.services.networkservices.v1.model.Gateway} + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected Create(java.lang.String parent, com.google.api.services.networkservices.v1.model.Gateway content) { + super(NetworkServices.this, "POST", REST_PATH, content, com.google.api.services.networkservices.v1.model.Operation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } } - public class Get extends NetworkServicesRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. Name of the GatewayRouteView resource. Formats: - * projects/{project_number}/locations/{location}/gateways/{gateway}/routeViews/{route_view} - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.GatewayRouteView.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/gateways/[^/]+/routeViews/[^/]+$"); - } - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + /** + * Required. The parent resource of the Gateway. Must be in the format + * `projects/locations`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + /** Required. The parent resource of the Gateway. Must be in the format `projects/locations`. + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + /** + * Required. The parent resource of the Gateway. Must be in the format + * `projects/locations`. + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + this.parent = parent; + return this; + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Required. Short name of the Gateway resource to be created. */ + @com.google.api.client.util.Key + private java.lang.String gatewayId; - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** Required. Short name of the Gateway resource to be created. + */ + public java.lang.String getGatewayId() { + return gatewayId; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + /** Required. Short name of the Gateway resource to be created. */ + public Create setGatewayId(java.lang.String gatewayId) { + this.gatewayId = gatewayId; + return this; + } - /** - * Required. Name of the GatewayRouteView resource. Formats: projects/{project_number}/l - * ocations/{location}/gateways/{gateway}/routeViews/{route_view} - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single Gateway. + * + * Create a request for the method "gateways.delete". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. A name of the Gateway to delete. Must be in the format `projects/locations/gateways`. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } - /** Required. Name of the GatewayRouteView resource. Formats: - projects/{project_number}/locations/{location}/gateways/{gateway}/routeViews/{route_view} - */ - public java.lang.String getName() { - return name; - } + public class Delete extends NetworkServicesRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The Gateway to which a Route is associated. Formats: - * projects/{project_number}/locations/{location}/gateways/{gateway} - * @return the request + * @param name Required. A name of the Gateway to delete. Must be in the format `projects/locations/gateways`. + * @since 1.13 */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; + protected Delete(java.lang.String name) { + super(NetworkServices.this, "DELETE", REST_PATH, null, com.google.api.services.networkservices.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$"); + } } - public class List extends NetworkServicesRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The Gateway to which a Route is associated. Formats: - * projects/{project_number}/locations/{location}/gateways/{gateway} - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListGatewayRouteViewsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$"); - } - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The Gateway to which a Route is associated. Formats: - * projects/{project_number}/locations/{location}/gateways/{gateway} - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - /** Required. The Gateway to which a Route is associated. Formats: - projects/{project_number}/locations/{location}/gateways/{gateway} - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - /** - * Required. The Gateway to which a Route is associated. Formats: - * projects/{project_number}/locations/{location}/gateways/{gateway} - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$"); - } - this.parent = parent; - return this; - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - /** Maximum number of GatewayRouteViews to return per call. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - /** Maximum number of GatewayRouteViews to return per call. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** Maximum number of GatewayRouteViews to return per call. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - /** - * The value returned by the last `ListGatewayRouteViewsResponse` Indicates that this is - * a continuation of a prior `ListGatewayRouteViews` call, and that the system should - * return the next page of data. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - /** The value returned by the last `ListGatewayRouteViewsResponse` Indicates that this is a - continuation of a prior `ListGatewayRouteViews` call, and that the system should return the next - page of data. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * Required. A name of the Gateway to delete. Must be in the format + * `projects/locations/gateways`. + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * The value returned by the last `ListGatewayRouteViewsResponse` Indicates that this is - * a continuation of a prior `ListGatewayRouteViews` call, and that the system should - * return the next page of data. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** Required. A name of the Gateway to delete. Must be in the format `projects/locations/gateways`. + */ + public java.lang.String getName() { + return name; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + /** + * Required. A name of the Gateway to delete. Must be in the format + * `projects/locations/gateways`. + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$"); } + this.name = name; + return this; } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } } - } - /** - * An accessor for creating requests from the GrpcRoutes collection. - * - *The typical use is:
- *
- * {@code NetworkServices networkservices = new NetworkServices(...);}
- * {@code NetworkServices.GrpcRoutes.List request = networkservices.grpcRoutes().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public GrpcRoutes grpcRoutes() {
- return new GrpcRoutes();
- }
-
- /**
- * The "grpcRoutes" collection of methods.
- */
- public class GrpcRoutes {
-
/**
- * Creates a new GrpcRoute in a given project and location.
+ * Gets details of a single Gateway.
*
- * Create a request for the method "grpcRoutes.create".
+ * Create a request for the method "gateways.get".
*
* This request holds the parameters needed by the networkservices server. After setting any
- * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
- * @param parent Required. The parent resource of the GrpcRoute. Must be in the format `projects/locations`.
- * @param content the {@link com.google.api.services.networkservices.v1.model.GrpcRoute}
+ * @param name Required. A name of the Gateway to get. Must be in the format `projects/locations/gateways`.
* @return the request
*/
- public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.GrpcRoute content) throws java.io.IOException {
- Create result = new Create(parent, content);
+ public Get get(java.lang.String name) throws java.io.IOException {
+ Get result = new Get(name);
initialize(result);
return result;
}
- public class Create extends NetworkServicesRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The parent resource of the GrpcRoute. Must be in the format `projects/locations`. - * @param content the {@link com.google.api.services.networkservices.v1.model.GrpcRoute} + * @param name Required. A name of the Gateway to get. Must be in the format `projects/locations/gateways`. * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.networkservices.v1.model.GrpcRoute content) { - super(NetworkServices.this, "POST", REST_PATH, content, com.google.api.services.networkservices.v1.model.Operation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Get(java.lang.String name) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.Gateway.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** - * Required. The parent resource of the GrpcRoute. Must be in the format - * `projects/locations`. + * Required. A name of the Gateway to get. Must be in the format + * `projects/locations/gateways`. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The parent resource of the GrpcRoute. Must be in the format `projects/locations`. + /** Required. A name of the Gateway to get. Must be in the format `projects/locations/gateways`. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * Required. The parent resource of the GrpcRoute. Must be in the format - * `projects/locations`. + * Required. A name of the Gateway to get. Must be in the format + * `projects/locations/gateways`. */ - public Create setParent(java.lang.String parent) { + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$"); } - this.parent = parent; - return this; - } - - /** Required. Short name of the GrpcRoute resource to be created. */ - @com.google.api.client.util.Key - private java.lang.String grpcRouteId; - - /** Required. Short name of the GrpcRoute resource to be created. - */ - public java.lang.String getGrpcRouteId() { - return grpcRouteId; - } - - /** Required. Short name of the GrpcRoute resource to be created. */ - public Create setGrpcRouteId(java.lang.String grpcRouteId) { - this.grpcRouteId = grpcRouteId; + this.name = name; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes a single GrpcRoute. + * Lists Gateways in a given project and location. * - * Create a request for the method "grpcRoutes.delete". + * Create a request for the method "gateways.list". * * This request holds the parameters needed by the networkservices server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name Required. A name of the GrpcRoute to delete. Must be in the format `projects/locations/grpcRoutes`. + * @param parent Required. The project and location from which the Gateways should be listed, specified in the format + * `projects/locations`. * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Delete extends NetworkServicesRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. A name of the GrpcRoute to delete. Must be in the format `projects/locations/grpcRoutes`. + * @param parent Required. The project and location from which the Gateways should be listed, specified in the format + * `projects/locations`. * @since 1.13 */ - protected Delete(java.lang.String name) { - super(NetworkServices.this, "DELETE", REST_PATH, null, com.google.api.services.networkservices.v1.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected List(java.lang.String parent) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListGatewaysResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/grpcRoutes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** - * Required. A name of the GrpcRoute to delete. Must be in the format - * `projects/locations/grpcRoutes`. + * Required. The project and location from which the Gateways should be listed, specified + * in the format `projects/locations`. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. A name of the GrpcRoute to delete. Must be in the format `projects/locations/grpcRoutes`. + /** Required. The project and location from which the Gateways should be listed, specified in the + format `projects/locations`. */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } /** - * Required. A name of the GrpcRoute to delete. Must be in the format - * `projects/locations/grpcRoutes`. + * Required. The project and location from which the Gateways should be listed, specified + * in the format `projects/locations`. */ - public Delete setName(java.lang.String name) { + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/grpcRoutes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + /** Maximum number of Gateways to return per call. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Maximum number of Gateways to return per call. + */ + public java.lang.Integer getPageSize() { + return pageSize; } - } - /** - * Gets details of a single GrpcRoute. - * - * Create a request for the method "grpcRoutes.get". - * - * This request holds the parameters needed by the networkservices server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. A name of the GrpcRoute to get. Must be in the format `projects/locations/grpcRoutes`. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } - public class Get extends NetworkServicesRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. A name of the GrpcRoute to get. Must be in the format `projects/locations/grpcRoutes`. + * @param name Identifier. Name of the Gateway resource. It matches pattern `projects/locations/gateways/`. + * @param content the {@link com.google.api.services.networkservices.v1.model.Gateway} * @since 1.13 */ - protected Get(java.lang.String name) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.GrpcRoute.class); + protected Patch(java.lang.String name, com.google.api.services.networkservices.v1.model.Gateway content) { + super(NetworkServices.this, "PATCH", REST_PATH, content, com.google.api.services.networkservices.v1.model.Operation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/grpcRoutes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** - * Required. A name of the GrpcRoute to get. Must be in the format - * `projects/locations/grpcRoutes`. + * Identifier. Name of the Gateway resource. It matches pattern + * `projects/locations/gateways/`. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. A name of the GrpcRoute to get. Must be in the format `projects/locations/grpcRoutes`. + /** Identifier. Name of the Gateway resource. It matches pattern `projects/locations/gateways/`. */ public java.lang.String getName() { return name; } /** - * Required. A name of the GrpcRoute to get. Must be in the format - * `projects/locations/grpcRoutes`. + * Identifier. Name of the Gateway resource. It matches pattern + * `projects/locations/gateways/`. */ - public Get setName(java.lang.String name) { + public Patch setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/grpcRoutes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$"); } this.name = name; return this; } + /** + * Optional. Field mask is used to specify the fields to be overwritten in the Gateway + * resource by the update. The fields specified in the update_mask are relative to the + * resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then all fields will be overwritten. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to specify the fields to be overwritten in the Gateway resource by the + update. The fields specified in the update_mask are relative to the resource, not the full request. + A field will be overwritten if it is in the mask. If the user does not provide a mask then all + fields will be overwritten. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the Gateway + * resource by the update. The fields specified in the update_mask are relative to the + * resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then all fields will be overwritten. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } + /** - * Lists GrpcRoutes in a given project and location. - * - * Create a request for the method "grpcRoutes.list". + * An accessor for creating requests from the RouteViews collection. * - * This request holds the parameters needed by the networkservices server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + *The typical use is:
+ *
+ * {@code NetworkServices networkservices = new NetworkServices(...);}
+ * {@code NetworkServices.RouteViews.List request = networkservices.routeViews().list(parameters ...)}
+ *
*
- * @param parent Required. The project and location from which the GrpcRoutes should be listed, specified in the
- * format `projects/locations`.
- * @return the request
+ * @return the resource collection
*/
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
- initialize(result);
- return result;
+ public RouteViews routeViews() {
+ return new RouteViews();
}
- public class List extends NetworkServicesRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param parent Required. The project and location from which the GrpcRoutes should be listed, specified in the - * format `projects/locations`. - * @since 1.13 + * @param name Required. Name of the GatewayRouteView resource. Formats: + * projects/{project_number}/locations/{location}/gateways/{gateway}/routeViews/{route_view} + * @return the request */ - protected List(java.lang.String parent) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListGrpcRoutesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + public class Get extends NetworkServicesRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. Name of the GatewayRouteView resource. Formats: + * projects/{project_number}/locations/{location}/gateways/{gateway}/routeViews/{route_view} + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.GatewayRouteView.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/gateways/[^/]+/routeViews/[^/]+$"); + } + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** - * Required. The project and location from which the GrpcRoutes should be listed, - * specified in the format `projects/locations`. - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** Required. The project and location from which the GrpcRoutes should be listed, specified in the - format `projects/locations`. - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** - * Required. The project and location from which the GrpcRoutes should be listed, - * specified in the format `projects/locations`. - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } - this.parent = parent; - return this; - } - /** Maximum number of GrpcRoutes to return per call. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** Maximum number of GrpcRoutes to return per call. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** Maximum number of GrpcRoutes to return per call. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** - * The value returned by the last `ListGrpcRoutesResponse` Indicates that this is a - * continuation of a prior `ListGrpcRoutes` call, and that the system should return the - * next page of data. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** The value returned by the last `ListGrpcRoutesResponse` Indicates that this is a continuation of a - prior `ListGrpcRoutes` call, and that the system should return the next page of data. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * Required. Name of the GatewayRouteView resource. Formats: projects/{project_number}/l + * ocations/{location}/gateways/{gateway}/routeViews/{route_view} + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * The value returned by the last `ListGrpcRoutesResponse` Indicates that this is a - * continuation of a prior `ListGrpcRoutes` call, and that the system should return the - * next page of data. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** Required. Name of the GatewayRouteView resource. Formats: + projects/{project_number}/locations/{location}/gateways/{gateway}/routeViews/{route_view} + */ + public java.lang.String getName() { + return name; + } - /** - * Optional. If true, allow partial responses for multi-regional Aggregated List requests. - * Otherwise if one of the locations is down or unreachable, the Aggregated List request - * will fail. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + /** + * Required. Name of the GatewayRouteView resource. Formats: projects/{project_number}/l + * ocations/{location}/gateways/{gateway}/routeViews/{route_view} + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/gateways/[^/]+/routeViews/[^/]+$"); + } + this.name = name; + return this; + } - /** Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise - if one of the locations is down or unreachable, the Aggregated List request will fail. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } } - /** - * Optional. If true, allow partial responses for multi-regional Aggregated List requests. - * Otherwise if one of the locations is down or unreachable, the Aggregated List request - * will fail. + * Lists RouteViews + * + * Create a request for the method "routeViews.list". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The Gateway to which a Route is associated. Formats: + * projects/{project_number}/locations/{location}/gateways/{gateway} + * @return the request */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates the parameters of a single GrpcRoute. - * - * Create a request for the method "grpcRoutes.patch". - * - * This request holds the parameters needed by the networkservices server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Identifier. Name of the GrpcRoute resource. It matches pattern `projects/locations/grpcRoutes/` - * @param content the {@link com.google.api.services.networkservices.v1.model.GrpcRoute} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.GrpcRoute content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } + public class List extends NetworkServicesRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The Gateway to which a Route is associated. Formats: + * projects/{project_number}/locations/{location}/gateways/{gateway} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListGatewayRouteViewsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The Gateway to which a Route is associated. Formats: + * projects/{project_number}/locations/{location}/gateways/{gateway} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The Gateway to which a Route is associated. Formats: + projects/{project_number}/locations/{location}/gateways/{gateway} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The Gateway to which a Route is associated. Formats: + * projects/{project_number}/locations/{location}/gateways/{gateway} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Maximum number of GatewayRouteViews to return per call. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Maximum number of GatewayRouteViews to return per call. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Maximum number of GatewayRouteViews to return per call. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * The value returned by the last `ListGatewayRouteViewsResponse` Indicates that this is + * a continuation of a prior `ListGatewayRouteViews` call, and that the system should + * return the next page of data. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The value returned by the last `ListGatewayRouteViewsResponse` Indicates that this is a + continuation of a prior `ListGatewayRouteViews` call, and that the system should return the next + page of data. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * The value returned by the last `ListGatewayRouteViewsResponse` Indicates that this is + * a continuation of a prior `ListGatewayRouteViews` call, and that the system should + * return the next page of data. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + } + /** + * An accessor for creating requests from the GrpcRoutes collection. + * + *The typical use is:
+ *
+ * {@code NetworkServices networkservices = new NetworkServices(...);}
+ * {@code NetworkServices.GrpcRoutes.List request = networkservices.grpcRoutes().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public GrpcRoutes grpcRoutes() {
+ return new GrpcRoutes();
+ }
+
+ /**
+ * The "grpcRoutes" collection of methods.
+ */
+ public class GrpcRoutes {
+
+ /**
+ * Creates a new GrpcRoute in a given project and location.
+ *
+ * Create a request for the method "grpcRoutes.create".
+ *
+ * This request holds the parameters needed by the networkservices server. After setting any
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The parent resource of the GrpcRoute. Must be in the format `projects/locations`.
+ * @param content the {@link com.google.api.services.networkservices.v1.model.GrpcRoute}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.GrpcRoute content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends NetworkServicesRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* - * @param name Identifier. Name of the GrpcRoute resource. It matches pattern `projects/locations/grpcRoutes/` + * @param parent Required. The parent resource of the GrpcRoute. Must be in the format `projects/locations`. * @param content the {@link com.google.api.services.networkservices.v1.model.GrpcRoute} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.networkservices.v1.model.GrpcRoute content) { - super(NetworkServices.this, "PATCH", REST_PATH, content, com.google.api.services.networkservices.v1.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected Create(java.lang.String parent, com.google.api.services.networkservices.v1.model.GrpcRoute content) { + super(NetworkServices.this, "POST", REST_PATH, content, com.google.api.services.networkservices.v1.model.Operation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/grpcRoutes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } - - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } - - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - /** - * Identifier. Name of the GrpcRoute resource. It matches pattern - * `projects/locations/grpcRoutes/` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Identifier. Name of the GrpcRoute resource. It matches pattern `projects/locations/grpcRoutes/` - */ - public java.lang.String getName() { - return name; - } - - /** - * Identifier. Name of the GrpcRoute resource. It matches pattern - * `projects/locations/grpcRoutes/` - */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/grpcRoutes/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Optional. Field mask is used to specify the fields to be overwritten in the GrpcRoute - * resource by the update. The fields specified in the update_mask are relative to the - * resource, not the full request. A field will be overwritten if it is in the mask. If - * the user does not provide a mask then all fields will be overwritten. - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Optional. Field mask is used to specify the fields to be overwritten in the GrpcRoute resource by - the update. The fields specified in the update_mask are relative to the resource, not the full - request. A field will be overwritten if it is in the mask. If the user does not provide a mask then - all fields will be overwritten. - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Optional. Field mask is used to specify the fields to be overwritten in the GrpcRoute - * resource by the update. The fields specified in the update_mask are relative to the - * resource, not the full request. A field will be overwritten if it is in the mask. If - * the user does not provide a mask then all fields will be overwritten. - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - - } - /** - * An accessor for creating requests from the HttpRoutes collection. - * - *The typical use is:
- *
- * {@code NetworkServices networkservices = new NetworkServices(...);}
- * {@code NetworkServices.HttpRoutes.List request = networkservices.httpRoutes().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public HttpRoutes httpRoutes() {
- return new HttpRoutes();
- }
-
- /**
- * The "httpRoutes" collection of methods.
- */
- public class HttpRoutes {
-
- /**
- * Creates a new HttpRoute in a given project and location.
- *
- * Create a request for the method "httpRoutes.create".
- *
- * This request holds the parameters needed by the networkservices server. After setting any
- * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The parent resource of the HttpRoute. Must be in the format `projects/locations`.
- * @param content the {@link com.google.api.services.networkservices.v1.model.HttpRoute}
- * @return the request
- */
- public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.HttpRoute content) throws java.io.IOException {
- Create result = new Create(parent, content);
- initialize(result);
- return result;
- }
-
- public class Create extends NetworkServicesRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The parent resource of the HttpRoute. Must be in the format `projects/locations`. - * @param content the {@link com.google.api.services.networkservices.v1.model.HttpRoute} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.networkservices.v1.model.HttpRoute content) { - super(NetworkServices.this, "POST", REST_PATH, content, com.google.api.services.networkservices.v1.model.Operation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override @@ -7781,20 +7785,20 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent resource of the HttpRoute. Must be in the format + * Required. The parent resource of the GrpcRoute. Must be in the format * `projects/locations`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent resource of the HttpRoute. Must be in the format `projects/locations`. + /** Required. The parent resource of the GrpcRoute. Must be in the format `projects/locations`. */ public java.lang.String getParent() { return parent; } /** - * Required. The parent resource of the HttpRoute. Must be in the format + * Required. The parent resource of the GrpcRoute. Must be in the format * `projects/locations`. */ public Create setParent(java.lang.String parent) { @@ -7807,35 +7811,19 @@ public Create setParent(java.lang.String parent) { return this; } - /** Required. Short name of the HttpRoute resource to be created. */ - @com.google.api.client.util.Key - private java.lang.String httpRouteId; - - /** Required. Short name of the HttpRoute resource to be created. - */ - public java.lang.String getHttpRouteId() { - return httpRouteId; - } - - /** Required. Short name of the HttpRoute resource to be created. */ - public Create setHttpRouteId(java.lang.String httpRouteId) { - this.httpRouteId = httpRouteId; - return this; - } - - /** Optional. Idempotent request UUID. */ + /** Required. Short name of the GrpcRoute resource to be created. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String grpcRouteId; - /** Optional. Idempotent request UUID. + /** Required. Short name of the GrpcRoute resource to be created. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getGrpcRouteId() { + return grpcRouteId; } - /** Optional. Idempotent request UUID. */ - public Create setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Required. Short name of the GrpcRoute resource to be created. */ + public Create setGrpcRouteId(java.lang.String grpcRouteId) { + this.grpcRouteId = grpcRouteId; return this; } @@ -7845,14 +7833,14 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes a single HttpRoute. + * Deletes a single GrpcRoute. * - * Create a request for the method "httpRoutes.delete". + * Create a request for the method "grpcRoutes.delete". * * This request holds the parameters needed by the networkservices server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. A name of the HttpRoute to delete. Must be in the format `projects/locations/httpRoutes`. + * @param name Required. A name of the GrpcRoute to delete. Must be in the format `projects/locations/grpcRoutes`. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -7866,12 +7854,12 @@ public class Delete extends NetworkServicesRequest* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. A name of the HttpRoute to get. Must be in the format `projects/locations/httpRoutes`. + * @param name Required. A name of the GrpcRoute to get. Must be in the format `projects/locations/grpcRoutes`. * @since 1.13 */ protected Get(java.lang.String name) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.HttpRoute.class); + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.GrpcRoute.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/httpRoutes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/grpcRoutes/[^/]+$"); } } @@ -8092,27 +8080,27 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. A name of the HttpRoute to get. Must be in the format - * `projects/locations/httpRoutes`. + * Required. A name of the GrpcRoute to get. Must be in the format + * `projects/locations/grpcRoutes`. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. A name of the HttpRoute to get. Must be in the format `projects/locations/httpRoutes`. + /** Required. A name of the GrpcRoute to get. Must be in the format `projects/locations/grpcRoutes`. */ public java.lang.String getName() { return name; } /** - * Required. A name of the HttpRoute to get. Must be in the format - * `projects/locations/httpRoutes`. + * Required. A name of the GrpcRoute to get. Must be in the format + * `projects/locations/grpcRoutes`. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/httpRoutes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/grpcRoutes/[^/]+$"); } this.name = name; return this; @@ -8124,14 +8112,14 @@ public Get set(String parameterName, Object value) { } } /** - * Lists HttpRoute in a given project and location. + * Lists GrpcRoutes in a given project and location. * - * Create a request for the method "httpRoutes.list". + * Create a request for the method "grpcRoutes.list". * * This request holds the parameters needed by the networkservices server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The project and location from which the HttpRoutes should be listed, specified in the + * @param parent Required. The project and location from which the GrpcRoutes should be listed, specified in the * format `projects/locations`. * @return the request */ @@ -8141,29 +8129,29 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends NetworkServicesRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The project and location from which the HttpRoutes should be listed, specified in the + * @param parent Required. The project and location from which the GrpcRoutes should be listed, specified in the * format `projects/locations`. * @since 1.13 */ protected List(java.lang.String parent) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListHttpRoutesResponse.class); + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListGrpcRoutesResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -8238,13 +8226,13 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The project and location from which the HttpRoutes should be listed, + * Required. The project and location from which the GrpcRoutes should be listed, * specified in the format `projects/locations`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The project and location from which the HttpRoutes should be listed, specified in the + /** Required. The project and location from which the GrpcRoutes should be listed, specified in the format `projects/locations`. */ public java.lang.String getParent() { @@ -8252,7 +8240,7 @@ public java.lang.String getParent() { } /** - * Required. The project and location from which the HttpRoutes should be listed, + * Required. The project and location from which the GrpcRoutes should be listed, * specified in the format `projects/locations`. */ public List setParent(java.lang.String parent) { @@ -8265,56 +8253,40 @@ public List setParent(java.lang.String parent) { return this; } - /** Optional. Filter expression to restrict the list. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. Filter expression to restrict the list. - */ - public java.lang.String getFilter() { - return filter; - } - - /** Optional. Filter expression to restrict the list. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** Maximum number of HttpRoutes to return per call. */ + /** Maximum number of GrpcRoutes to return per call. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Maximum number of HttpRoutes to return per call. + /** Maximum number of GrpcRoutes to return per call. */ public java.lang.Integer getPageSize() { return pageSize; } - /** Maximum number of HttpRoutes to return per call. */ + /** Maximum number of GrpcRoutes to return per call. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * The value returned by the last `ListHttpRoutesResponse` Indicates that this is a - * continuation of a prior `ListHttpRoutes` call, and that the system should return the + * The value returned by the last `ListGrpcRoutesResponse` Indicates that this is a + * continuation of a prior `ListGrpcRoutes` call, and that the system should return the * next page of data. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** The value returned by the last `ListHttpRoutesResponse` Indicates that this is a continuation of a - prior `ListHttpRoutes` call, and that the system should return the next page of data. + /** The value returned by the last `ListGrpcRoutesResponse` Indicates that this is a continuation of a + prior `ListGrpcRoutes` call, and that the system should return the next page of data. */ public java.lang.String getPageToken() { return pageToken; } /** - * The value returned by the last `ListHttpRoutesResponse` Indicates that this is a - * continuation of a prior `ListHttpRoutes` call, and that the system should return the + * The value returned by the last `ListGrpcRoutesResponse` Indicates that this is a + * continuation of a prior `ListGrpcRoutes` call, and that the system should return the * next page of data. */ public List setPageToken(java.lang.String pageToken) { @@ -8353,19 +8325,18 @@ public List set(String parameterName, Object value) { } } /** - * Updates the parameters of a single HttpRoute. + * Updates the parameters of a single GrpcRoute. * - * Create a request for the method "httpRoutes.patch". + * Create a request for the method "grpcRoutes.patch". * * This request holds the parameters needed by the networkservices server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Identifier. Name of the HttpRoute resource. It matches pattern - * `projects/locations/httpRoutes/http_route_name>`. - * @param content the {@link com.google.api.services.networkservices.v1.model.HttpRoute} + * @param name Identifier. Name of the GrpcRoute resource. It matches pattern `projects/locations/grpcRoutes/` + * @param content the {@link com.google.api.services.networkservices.v1.model.GrpcRoute} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.HttpRoute content) throws java.io.IOException { + public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.GrpcRoute content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; @@ -8376,12 +8347,12 @@ public class Patch extends NetworkServicesRequestThe typical use is:
*
* {@code NetworkServices networkservices = new NetworkServices(...);}
- * {@code NetworkServices.LbEdgeExtensions.List request = networkservices.lbEdgeExtensions().list(parameters ...)}
+ * {@code NetworkServices.HttpRoutes.List request = networkservices.httpRoutes().list(parameters ...)}
*
*
* @return the resource collection
*/
- public LbEdgeExtensions lbEdgeExtensions() {
- return new LbEdgeExtensions();
+ public HttpRoutes httpRoutes() {
+ return new HttpRoutes();
}
/**
- * The "lbEdgeExtensions" collection of methods.
+ * The "httpRoutes" collection of methods.
*/
- public class LbEdgeExtensions {
+ public class HttpRoutes {
/**
- * Creates a new `LbEdgeExtension` resource in a given project and location.
+ * Creates a new HttpRoute in a given project and location.
*
- * Create a request for the method "lbEdgeExtensions.create".
+ * Create a request for the method "httpRoutes.create".
*
* This request holds the parameters needed by the networkservices server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
- * @param parent Required. The parent resource of the `LbEdgeExtension` resource. Must be in the format
- * `projects/{project}/locations/{location}`.
- * @param content the {@link com.google.api.services.networkservices.v1.model.LbEdgeExtension}
+ * @param parent Required. The parent resource of the HttpRoute. Must be in the format `projects/locations`.
+ * @param content the {@link com.google.api.services.networkservices.v1.model.HttpRoute}
* @return the request
*/
- public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.LbEdgeExtension content) throws java.io.IOException {
+ public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.HttpRoute content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
@@ -8564,15 +8532,15 @@ public Create create(java.lang.String parent, com.google.api.services.networkser
public class Create extends NetworkServicesRequest* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. A name of the `LbEdgeExtension` resource to get. Must be in the format - * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. + * @param name Required. A name of the HttpRoute to get. Must be in the format `projects/locations/httpRoutes`. * @since 1.13 */ protected Get(java.lang.String name) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.LbEdgeExtension.class); + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.HttpRoute.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/lbEdgeExtensions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/httpRoutes/[^/]+$"); } } @@ -9032,28 +8929,27 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. A name of the `LbEdgeExtension` resource to get. Must be in the format - * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. + * Required. A name of the HttpRoute to get. Must be in the format + * `projects/locations/httpRoutes`. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. A name of the `LbEdgeExtension` resource to get. Must be in the format - `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. + /** Required. A name of the HttpRoute to get. Must be in the format `projects/locations/httpRoutes`. */ public java.lang.String getName() { return name; } /** - * Required. A name of the `LbEdgeExtension` resource to get. Must be in the format - * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. + * Required. A name of the HttpRoute to get. Must be in the format + * `projects/locations/httpRoutes`. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/lbEdgeExtensions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/httpRoutes/[^/]+$"); } this.name = name; return this; @@ -9065,15 +8961,15 @@ public Get set(String parameterName, Object value) { } } /** - * Lists `LbEdgeExtension` resources in a given project and location. + * Lists HttpRoute in a given project and location. * - * Create a request for the method "lbEdgeExtensions.list". + * Create a request for the method "httpRoutes.list". * * This request holds the parameters needed by the networkservices server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The project and location from which the `LbEdgeExtension` resources are listed. These - * values are specified in the following format: `projects/{project}/locations/{location}`. + * @param parent Required. The project and location from which the HttpRoutes should be listed, specified in the + * format `projects/locations`. * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -9082,29 +8978,29 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends NetworkServicesRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The project and location from which the `LbEdgeExtension` resources are listed. These - * values are specified in the following format: `projects/{project}/locations/{location}`. + * @param parent Required. The project and location from which the HttpRoutes should be listed, specified in the + * format `projects/locations`. * @since 1.13 */ protected List(java.lang.String parent) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListLbEdgeExtensionsResponse.class); + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListHttpRoutesResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -9179,24 +9075,22 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The project and location from which the `LbEdgeExtension` resources are - * listed. These values are specified in the following format: - * `projects/{project}/locations/{location}`. + * Required. The project and location from which the HttpRoutes should be listed, + * specified in the format `projects/locations`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The project and location from which the `LbEdgeExtension` resources are listed. These - values are specified in the following format: `projects/{project}/locations/{location}`. + /** Required. The project and location from which the HttpRoutes should be listed, specified in the + format `projects/locations`. */ public java.lang.String getParent() { return parent; } /** - * Required. The project and location from which the `LbEdgeExtension` resources are - * listed. These values are specified in the following format: - * `projects/{project}/locations/{location}`. + * Required. The project and location from which the HttpRoutes should be listed, + * specified in the format `projects/locations`. */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -9208,74 +9102,85 @@ public List setParent(java.lang.String parent) { return this; } - /** Optional. Filtering results. */ + /** Optional. Filter expression to restrict the list. */ @com.google.api.client.util.Key private java.lang.String filter; - /** Optional. Filtering results. + /** Optional. Filter expression to restrict the list. */ public java.lang.String getFilter() { return filter; } - /** Optional. Filtering results. */ + /** Optional. Filter expression to restrict the list. */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** Optional. Hint about how to order the results. */ + /** Maximum number of HttpRoutes to return per call. */ @com.google.api.client.util.Key - private java.lang.String orderBy; + private java.lang.Integer pageSize; - /** Optional. Hint about how to order the results. + /** Maximum number of HttpRoutes to return per call. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.Integer getPageSize() { + return pageSize; } - /** Optional. Hint about how to order the results. */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + /** Maximum number of HttpRoutes to return per call. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } /** - * Optional. Requested page size. The server might return fewer items than requested. If - * unspecified, the server picks an appropriate default. + * The value returned by the last `ListHttpRoutesResponse` Indicates that this is a + * continuation of a prior `ListHttpRoutes` call, and that the system should return the + * next page of data. */ @com.google.api.client.util.Key - private java.lang.Integer pageSize; + private java.lang.String pageToken; - /** Optional. Requested page size. The server might return fewer items than requested. If unspecified, - the server picks an appropriate default. + /** The value returned by the last `ListHttpRoutesResponse` Indicates that this is a continuation of a + prior `ListHttpRoutes` call, and that the system should return the next page of data. */ - public java.lang.Integer getPageSize() { - return pageSize; + public java.lang.String getPageToken() { + return pageToken; } /** - * Optional. Requested page size. The server might return fewer items than requested. If - * unspecified, the server picks an appropriate default. + * The value returned by the last `ListHttpRoutesResponse` Indicates that this is a + * continuation of a prior `ListHttpRoutes` call, and that the system should return the + * next page of data. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } - /** Optional. A token identifying a page of results that the server returns. */ + /** + * Optional. If true, allow partial responses for multi-regional Aggregated List requests. + * Otherwise if one of the locations is down or unreachable, the Aggregated List request + * will fail. + */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.Boolean returnPartialSuccess; - /** Optional. A token identifying a page of results that the server returns. + /** Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise + if one of the locations is down or unreachable, the Aggregated List request will fail. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** Optional. A token identifying a page of results that the server returns. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** + * Optional. If true, allow partial responses for multi-regional Aggregated List requests. + * Otherwise if one of the locations is down or unreachable, the Aggregated List request + * will fail. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @@ -9285,19 +9190,19 @@ public List set(String parameterName, Object value) { } } /** - * Updates the parameters of the specified `LbEdgeExtension` resource. + * Updates the parameters of a single HttpRoute. * - * Create a request for the method "lbEdgeExtensions.patch". + * Create a request for the method "httpRoutes.patch". * * This request holds the parameters needed by the networkservices server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Required. Identifier. Name of the `LbEdgeExtension` resource in the following format: - * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. - * @param content the {@link com.google.api.services.networkservices.v1.model.LbEdgeExtension} + * @param name Identifier. Name of the HttpRoute resource. It matches pattern + * `projects/locations/httpRoutes/http_route_name>`. + * @param content the {@link com.google.api.services.networkservices.v1.model.HttpRoute} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.LbEdgeExtension content) throws java.io.IOException { + public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.HttpRoute content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; @@ -9308,12 +9213,12 @@ public class Patch extends NetworkServicesRequestThe typical use is:
*
* {@code NetworkServices networkservices = new NetworkServices(...);}
- * {@code NetworkServices.LbRouteExtensions.List request = networkservices.lbRouteExtensions().list(parameters ...)}
+ * {@code NetworkServices.LbEdgeExtensions.List request = networkservices.lbEdgeExtensions().list(parameters ...)}
*
*
* @return the resource collection
*/
- public LbRouteExtensions lbRouteExtensions() {
- return new LbRouteExtensions();
+ public LbEdgeExtensions lbEdgeExtensions() {
+ return new LbEdgeExtensions();
}
/**
- * The "lbRouteExtensions" collection of methods.
+ * The "lbEdgeExtensions" collection of methods.
*/
- public class LbRouteExtensions {
+ public class LbEdgeExtensions {
/**
- * Creates a new `LbRouteExtension` resource in a given project and location.
+ * Creates a new `LbEdgeExtension` resource in a given project and location.
*
- * Create a request for the method "lbRouteExtensions.create".
+ * Create a request for the method "lbEdgeExtensions.create".
*
* This request holds the parameters needed by the networkservices server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
- * @param parent Required. The parent resource of the `LbRouteExtension` resource. Must be in the format
+ * @param parent Required. The parent resource of the `LbEdgeExtension` resource. Must be in the format
* `projects/{project}/locations/{location}`.
- * @param content the {@link com.google.api.services.networkservices.v1.model.LbRouteExtension}
+ * @param content the {@link com.google.api.services.networkservices.v1.model.LbEdgeExtension}
* @return the request
*/
- public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.LbRouteExtension content) throws java.io.IOException {
+ public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.LbEdgeExtension content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
@@ -9536,15 +9401,15 @@ public Create create(java.lang.String parent, com.google.api.services.networkser
public class Create extends NetworkServicesRequest* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. A name of the `LbRouteExtension` resource to get. Must be in the format - * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. + * @param name Required. A name of the `LbEdgeExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. * @since 1.13 */ protected Get(java.lang.String name) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.LbRouteExtension.class); + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.LbEdgeExtension.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/lbRouteExtensions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/lbEdgeExtensions/[^/]+$"); } } @@ -10004,28 +9869,28 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. A name of the `LbRouteExtension` resource to get. Must be in the format - * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. + * Required. A name of the `LbEdgeExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. A name of the `LbRouteExtension` resource to get. Must be in the format - `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. + /** Required. A name of the `LbEdgeExtension` resource to get. Must be in the format + `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. */ public java.lang.String getName() { return name; } /** - * Required. A name of the `LbRouteExtension` resource to get. Must be in the format - * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. + * Required. A name of the `LbEdgeExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/lbRouteExtensions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/lbEdgeExtensions/[^/]+$"); } this.name = name; return this; @@ -10037,14 +9902,14 @@ public Get set(String parameterName, Object value) { } } /** - * Lists `LbRouteExtension` resources in a given project and location. + * Lists `LbEdgeExtension` resources in a given project and location. * - * Create a request for the method "lbRouteExtensions.list". + * Create a request for the method "lbEdgeExtensions.list". * * This request holds the parameters needed by the networkservices server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The project and location from which the `LbRouteExtension` resources are listed. These + * @param parent Required. The project and location from which the `LbEdgeExtension` resources are listed. These * values are specified in the following format: `projects/{project}/locations/{location}`. * @return the request */ @@ -10054,29 +9919,29 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends NetworkServicesRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The project and location from which the `LbRouteExtension` resources are listed. These + * @param parent Required. The project and location from which the `LbEdgeExtension` resources are listed. These * values are specified in the following format: `projects/{project}/locations/{location}`. * @since 1.13 */ protected List(java.lang.String parent) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListLbRouteExtensionsResponse.class); + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListLbEdgeExtensionsResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -10151,14 +10016,14 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The project and location from which the `LbRouteExtension` resources are + * Required. The project and location from which the `LbEdgeExtension` resources are * listed. These values are specified in the following format: * `projects/{project}/locations/{location}`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The project and location from which the `LbRouteExtension` resources are listed. These + /** Required. The project and location from which the `LbEdgeExtension` resources are listed. These values are specified in the following format: `projects/{project}/locations/{location}`. */ public java.lang.String getParent() { @@ -10166,7 +10031,7 @@ public java.lang.String getParent() { } /** - * Required. The project and location from which the `LbRouteExtension` resources are + * Required. The project and location from which the `LbEdgeExtension` resources are * listed. These values are specified in the following format: * `projects/{project}/locations/{location}`. */ @@ -10257,19 +10122,19 @@ public List set(String parameterName, Object value) { } } /** - * Updates the parameters of the specified `LbRouteExtension` resource. + * Updates the parameters of the specified `LbEdgeExtension` resource. * - * Create a request for the method "lbRouteExtensions.patch". + * Create a request for the method "lbEdgeExtensions.patch". * * This request holds the parameters needed by the networkservices server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Required. Identifier. Name of the `LbRouteExtension` resource in the following format: - * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. - * @param content the {@link com.google.api.services.networkservices.v1.model.LbRouteExtension} + * @param name Required. Identifier. Name of the `LbEdgeExtension` resource in the following format: + * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. + * @param content the {@link com.google.api.services.networkservices.v1.model.LbEdgeExtension} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.LbRouteExtension content) throws java.io.IOException { + public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.LbEdgeExtension content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; @@ -10280,12 +10145,12 @@ public class Patch extends NetworkServicesRequestThe typical use is:
*
* {@code NetworkServices networkservices = new NetworkServices(...);}
- * {@code NetworkServices.LbTrafficExtensions.List request = networkservices.lbTrafficExtensions().list(parameters ...)}
+ * {@code NetworkServices.LbRouteExtensions.List request = networkservices.lbRouteExtensions().list(parameters ...)}
*
*
* @return the resource collection
*/
- public LbTrafficExtensions lbTrafficExtensions() {
- return new LbTrafficExtensions();
+ public LbRouteExtensions lbRouteExtensions() {
+ return new LbRouteExtensions();
}
/**
- * The "lbTrafficExtensions" collection of methods.
+ * The "lbRouteExtensions" collection of methods.
*/
- public class LbTrafficExtensions {
+ public class LbRouteExtensions {
/**
- * Creates a new `LbTrafficExtension` resource in a given project and location.
+ * Creates a new `LbRouteExtension` resource in a given project and location.
*
- * Create a request for the method "lbTrafficExtensions.create".
+ * Create a request for the method "lbRouteExtensions.create".
*
* This request holds the parameters needed by the networkservices server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
- * @param parent Required. The parent resource of the `LbTrafficExtension` resource. Must be in the format
+ * @param parent Required. The parent resource of the `LbRouteExtension` resource. Must be in the format
* `projects/{project}/locations/{location}`.
- * @param content the {@link com.google.api.services.networkservices.v1.model.LbTrafficExtension}
+ * @param content the {@link com.google.api.services.networkservices.v1.model.LbRouteExtension}
* @return the request
*/
- public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.LbTrafficExtension content) throws java.io.IOException {
+ public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.LbRouteExtension content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
@@ -10508,15 +10373,15 @@ public Create create(java.lang.String parent, com.google.api.services.networkser
public class Create extends NetworkServicesRequest* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. A name of the `LbTrafficExtension` resource to get. Must be in the format - * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. + * @param name Required. A name of the `LbRouteExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. * @since 1.13 */ protected Get(java.lang.String name) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.LbTrafficExtension.class); + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.LbRouteExtension.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/lbTrafficExtensions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/lbRouteExtensions/[^/]+$"); } } @@ -10978,28 +10841,28 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. A name of the `LbTrafficExtension` resource to get. Must be in the format - * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. + * Required. A name of the `LbRouteExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. A name of the `LbTrafficExtension` resource to get. Must be in the format - `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. + /** Required. A name of the `LbRouteExtension` resource to get. Must be in the format + `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. */ public java.lang.String getName() { return name; } /** - * Required. A name of the `LbTrafficExtension` resource to get. Must be in the format - * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. + * Required. A name of the `LbRouteExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/lbTrafficExtensions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/lbRouteExtensions/[^/]+$"); } this.name = name; return this; @@ -11011,14 +10874,14 @@ public Get set(String parameterName, Object value) { } } /** - * Lists `LbTrafficExtension` resources in a given project and location. + * Lists `LbRouteExtension` resources in a given project and location. * - * Create a request for the method "lbTrafficExtensions.list". + * Create a request for the method "lbRouteExtensions.list". * * This request holds the parameters needed by the networkservices server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The project and location from which the `LbTrafficExtension` resources are listed. These + * @param parent Required. The project and location from which the `LbRouteExtension` resources are listed. These * values are specified in the following format: `projects/{project}/locations/{location}`. * @return the request */ @@ -11028,29 +10891,29 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends NetworkServicesRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The project and location from which the `LbTrafficExtension` resources are listed. These + * @param parent Required. The project and location from which the `LbRouteExtension` resources are listed. These * values are specified in the following format: `projects/{project}/locations/{location}`. * @since 1.13 */ protected List(java.lang.String parent) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListLbTrafficExtensionsResponse.class); + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListLbRouteExtensionsResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -11125,14 +10988,14 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The project and location from which the `LbTrafficExtension` resources are + * Required. The project and location from which the `LbRouteExtension` resources are * listed. These values are specified in the following format: * `projects/{project}/locations/{location}`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The project and location from which the `LbTrafficExtension` resources are listed. These + /** Required. The project and location from which the `LbRouteExtension` resources are listed. These values are specified in the following format: `projects/{project}/locations/{location}`. */ public java.lang.String getParent() { @@ -11140,7 +11003,7 @@ public java.lang.String getParent() { } /** - * Required. The project and location from which the `LbTrafficExtension` resources are + * Required. The project and location from which the `LbRouteExtension` resources are * listed. These values are specified in the following format: * `projects/{project}/locations/{location}`. */ @@ -11231,19 +11094,19 @@ public List set(String parameterName, Object value) { } } /** - * Updates the parameters of the specified `LbTrafficExtension` resource. + * Updates the parameters of the specified `LbRouteExtension` resource. * - * Create a request for the method "lbTrafficExtensions.patch". + * Create a request for the method "lbRouteExtensions.patch". * * This request holds the parameters needed by the networkservices server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Required. Identifier. Name of the `LbTrafficExtension` resource in the following format: - * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. - * @param content the {@link com.google.api.services.networkservices.v1.model.LbTrafficExtension} + * @param name Required. Identifier. Name of the `LbRouteExtension` resource in the following format: + * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. + * @param content the {@link com.google.api.services.networkservices.v1.model.LbRouteExtension} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.LbTrafficExtension content) throws java.io.IOException { + public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.LbRouteExtension content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; @@ -11254,12 +11117,12 @@ public class Patch extends NetworkServicesRequestThe typical use is:
*
* {@code NetworkServices networkservices = new NetworkServices(...);}
- * {@code NetworkServices.Meshes.List request = networkservices.meshes().list(parameters ...)}
+ * {@code NetworkServices.LbTrafficExtensions.List request = networkservices.lbTrafficExtensions().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Meshes meshes() {
- return new Meshes();
+ public LbTrafficExtensions lbTrafficExtensions() {
+ return new LbTrafficExtensions();
}
/**
- * The "meshes" collection of methods.
+ * The "lbTrafficExtensions" collection of methods.
*/
- public class Meshes {
+ public class LbTrafficExtensions {
/**
- * Creates a new Mesh in a given project and location.
+ * Creates a new `LbTrafficExtension` resource in a given project and location.
*
- * Create a request for the method "meshes.create".
+ * Create a request for the method "lbTrafficExtensions.create".
*
* This request holds the parameters needed by the networkservices server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
- * @param parent Required. The parent resource of the Mesh. Must be in the format `projects/locations`.
- * @param content the {@link com.google.api.services.networkservices.v1.model.Mesh}
+ * @param parent Required. The parent resource of the `LbTrafficExtension` resource. Must be in the format
+ * `projects/{project}/locations/{location}`.
+ * @param content the {@link com.google.api.services.networkservices.v1.model.LbTrafficExtension}
* @return the request
*/
- public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.Mesh content) throws java.io.IOException {
+ public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.LbTrafficExtension content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
@@ -11483,15 +11345,15 @@ public Create create(java.lang.String parent, com.google.api.services.networkser
public class Create extends NetworkServicesRequest* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. A name of the Mesh to get. Must be in the format `projects/locations/meshes`. + * @param name Required. A name of the `LbTrafficExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. * @since 1.13 */ protected Get(java.lang.String name) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.Mesh.class); + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.LbTrafficExtension.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/meshes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/lbTrafficExtensions/[^/]+$"); } } @@ -11862,25 +11815,28 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. A name of the Mesh to get. Must be in the format `projects/locations/meshes`. + * Required. A name of the `LbTrafficExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. A name of the Mesh to get. Must be in the format `projects/locations/meshes`. + /** Required. A name of the `LbTrafficExtension` resource to get. Must be in the format + `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. */ public java.lang.String getName() { return name; } /** - * Required. A name of the Mesh to get. Must be in the format `projects/locations/meshes`. + * Required. A name of the `LbTrafficExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/meshes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/lbTrafficExtensions/[^/]+$"); } this.name = name; return this; @@ -11892,15 +11848,15 @@ public Get set(String parameterName, Object value) { } } /** - * Lists Meshes in a given project and location. + * Lists `LbTrafficExtension` resources in a given project and location. * - * Create a request for the method "meshes.list". + * Create a request for the method "lbTrafficExtensions.list". * * This request holds the parameters needed by the networkservices server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The project and location from which the Meshes should be listed, specified in the format - * `projects/locations`. + * @param parent Required. The project and location from which the `LbTrafficExtension` resources are listed. These + * values are specified in the following format: `projects/{project}/locations/{location}`. * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -11909,29 +11865,29 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends NetworkServicesRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The project and location from which the Meshes should be listed, specified in the format - * `projects/locations`. + * @param parent Required. The project and location from which the `LbTrafficExtension` resources are listed. These + * values are specified in the following format: `projects/{project}/locations/{location}`. * @since 1.13 */ protected List(java.lang.String parent) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListMeshesResponse.class); + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListLbTrafficExtensionsResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -12006,22 +11962,24 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The project and location from which the Meshes should be listed, specified in - * the format `projects/locations`. + * Required. The project and location from which the `LbTrafficExtension` resources are + * listed. These values are specified in the following format: + * `projects/{project}/locations/{location}`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The project and location from which the Meshes should be listed, specified in the format - `projects/locations`. + /** Required. The project and location from which the `LbTrafficExtension` resources are listed. These + values are specified in the following format: `projects/{project}/locations/{location}`. */ public java.lang.String getParent() { return parent; } /** - * Required. The project and location from which the Meshes should be listed, specified in - * the format `projects/locations`. + * Required. The project and location from which the `LbTrafficExtension` resources are + * listed. These values are specified in the following format: + * `projects/{project}/locations/{location}`. */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -12033,90 +11991,96 @@ public List setParent(java.lang.String parent) { return this; } - /** Maximum number of Meshes to return per call. */ + /** Optional. Filtering results. */ @com.google.api.client.util.Key - private java.lang.Integer pageSize; + private java.lang.String filter; - /** Maximum number of Meshes to return per call. + /** Optional. Filtering results. */ - public java.lang.Integer getPageSize() { - return pageSize; + public java.lang.String getFilter() { + return filter; } - /** Maximum number of Meshes to return per call. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + /** Optional. Filtering results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } - /** - * The value returned by the last `ListMeshesResponse` Indicates that this is a - * continuation of a prior `ListMeshes` call, and that the system should return the next - * page of data. - */ + /** Optional. Hint about how to order the results. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String orderBy; - /** The value returned by the last `ListMeshesResponse` Indicates that this is a continuation of a - prior `ListMeshes` call, and that the system should return the next page of data. + /** Optional. Hint about how to order the results. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getOrderBy() { + return orderBy; } - /** - * The value returned by the last `ListMeshesResponse` Indicates that this is a - * continuation of a prior `ListMeshes` call, and that the system should return the next - * page of data. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Optional. Hint about how to order the results. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; return this; } /** - * Optional. If true, allow partial responses for multi-regional Aggregated List requests. - * Otherwise if one of the locations is down or unreachable, the Aggregated List request - * will fail. + * Optional. Requested page size. The server might return fewer items than requested. If + * unspecified, the server picks an appropriate default. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.Integer pageSize; - /** Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise - if one of the locations is down or unreachable, the Aggregated List request will fail. + /** Optional. Requested page size. The server might return fewer items than requested. If unspecified, + the server picks an appropriate default. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.Integer getPageSize() { + return pageSize; } /** - * Optional. If true, allow partial responses for multi-regional Aggregated List requests. - * Otherwise if one of the locations is down or unreachable, the Aggregated List request - * will fail. + * Optional. Requested page size. The server might return fewer items than requested. If + * unspecified, the server picks an appropriate default. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + /** Optional. A token identifying a page of results that the server returns. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token identifying a page of results that the server returns. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A token identifying a page of results that the server returns. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Updates the parameters of a single Mesh. + * Updates the parameters of the specified `LbTrafficExtension` resource. * - * Create a request for the method "meshes.patch". + * Create a request for the method "lbTrafficExtensions.patch". * * This request holds the parameters needed by the networkservices server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Identifier. Name of the Mesh resource. It matches pattern `projects/locations/meshes/`. - * @param content the {@link com.google.api.services.networkservices.v1.model.Mesh} + * @param name Required. Identifier. Name of the `LbTrafficExtension` resource in the following format: + * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. + * @param content the {@link com.google.api.services.networkservices.v1.model.LbTrafficExtension} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.Mesh content) throws java.io.IOException { + public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.LbTrafficExtension content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; @@ -12127,12 +12091,12 @@ public class Patch extends NetworkServicesRequestThe typical use is:
+ *
+ * {@code NetworkServices networkservices = new NetworkServices(...);}
+ * {@code NetworkServices.Meshes.List request = networkservices.meshes().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Meshes meshes() {
+ return new Meshes();
+ }
+
+ /**
+ * The "meshes" collection of methods.
+ */
+ public class Meshes {
+
/**
- * An accessor for creating requests from the RouteViews collection.
+ * Creates a new Mesh in a given project and location.
*
- * The typical use is:
- *
- * {@code NetworkServices networkservices = new NetworkServices(...);}
- * {@code NetworkServices.RouteViews.List request = networkservices.routeViews().list(parameters ...)}
- *
+ * Create a request for the method "meshes.create".
*
- * @return the resource collection
+ * This request holds the parameters needed by the networkservices server. After setting any
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The parent resource of the Mesh. Must be in the format `projects/locations`.
+ * @param content the {@link com.google.api.services.networkservices.v1.model.Mesh}
+ * @return the request
*/
- public RouteViews routeViews() {
- return new RouteViews();
+ public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.Mesh content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
}
- /**
- * The "routeViews" collection of methods.
- */
- public class RouteViews {
+ public class Create extends NetworkServicesRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. Name of the MeshRouteView resource. Format: - * projects/{project_number}/locations/{location}/meshes/{mesh}/routeViews/{route_view} - * @return the request + * @param parent Required. The parent resource of the Mesh. Must be in the format `projects/locations`. + * @param content the {@link com.google.api.services.networkservices.v1.model.Mesh} + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected Create(java.lang.String parent, com.google.api.services.networkservices.v1.model.Mesh content) { + super(NetworkServices.this, "POST", REST_PATH, content, com.google.api.services.networkservices.v1.model.Operation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } } - public class Get extends NetworkServicesRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. Name of the MeshRouteView resource. Format: - * projects/{project_number}/locations/{location}/meshes/{mesh}/routeViews/{route_view} - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.MeshRouteView.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/meshes/[^/]+/routeViews/[^/]+$"); - } - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + /** + * Required. The parent resource of the Mesh. Must be in the format `projects/locations`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + /** Required. The parent resource of the Mesh. Must be in the format `projects/locations`. + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + /** + * Required. The parent resource of the Mesh. Must be in the format `projects/locations`. + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + this.parent = parent; + return this; + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Required. Short name of the Mesh resource to be created. */ + @com.google.api.client.util.Key + private java.lang.String meshId; - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** Required. Short name of the Mesh resource to be created. + */ + public java.lang.String getMeshId() { + return meshId; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + /** Required. Short name of the Mesh resource to be created. */ + public Create setMeshId(java.lang.String meshId) { + this.meshId = meshId; + return this; + } - /** - * Required. Name of the MeshRouteView resource. Format: - * projects/{project_number}/locations/{location}/meshes/{mesh}/routeViews/{route_view} - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single Mesh. + * + * Create a request for the method "meshes.delete". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. A name of the Mesh to delete. Must be in the format `projects/locations/meshes`. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } - /** Required. Name of the MeshRouteView resource. Format: - projects/{project_number}/locations/{location}/meshes/{mesh}/routeViews/{route_view} - */ - public java.lang.String getName() { - return name; - } + public class Delete extends NetworkServicesRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The Mesh to which a Route is associated. Format: - * projects/{project_number}/locations/{location}/meshes/{mesh} - * @return the request + * @param name Required. A name of the Mesh to delete. Must be in the format `projects/locations/meshes`. + * @since 1.13 */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; + protected Delete(java.lang.String name) { + super(NetworkServices.this, "DELETE", REST_PATH, null, com.google.api.services.networkservices.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/meshes/[^/]+$"); + } } - public class List extends NetworkServicesRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The Mesh to which a Route is associated. Format: - * projects/{project_number}/locations/{location}/meshes/{mesh} - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListMeshRouteViewsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/meshes/[^/]+$"); - } - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + /** + * Required. A name of the Mesh to delete. Must be in the format + * `projects/locations/meshes`. + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** Required. A name of the Mesh to delete. Must be in the format `projects/locations/meshes`. + */ + public java.lang.String getName() { + return name; + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + /** + * Required. A name of the Mesh to delete. Must be in the format + * `projects/locations/meshes`. + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/meshes/[^/]+$"); } + this.name = name; + return this; + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single Mesh. + * + * Create a request for the method "meshes.get". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. A name of the Mesh to get. Must be in the format `projects/locations/meshes`. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + public class Get extends NetworkServicesRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. A name of the Mesh to get. Must be in the format `projects/locations/meshes`. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.Mesh.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/meshes/[^/]+$"); } + } - /** - * Required. The Mesh to which a Route is associated. Format: - * projects/{project_number}/locations/{location}/meshes/{mesh} - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/meshes/[^/]+$"); - } - this.parent = parent; - return this; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** Maximum number of MeshRouteViews to return per call. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** Maximum number of MeshRouteViews to return per call. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** Maximum number of MeshRouteViews to return per call. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - /** - * The value returned by the last `ListMeshRouteViewsResponse` Indicates that this is a - * continuation of a prior `ListMeshRouteViews` call, and that the system should return - * the next page of data. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - /** The value returned by the last `ListMeshRouteViewsResponse` Indicates that this is a continuation - of a prior `ListMeshRouteViews` call, and that the system should return the next page of data. - */ - public java.lang.String getPageToken() { - return pageToken; + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. A name of the Mesh to get. Must be in the format `projects/locations/meshes`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. A name of the Mesh to get. Must be in the format `projects/locations/meshes`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. A name of the Mesh to get. Must be in the format `projects/locations/meshes`. + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/meshes/[^/]+$"); } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists Meshes in a given project and location. + * + * Create a request for the method "meshes.list". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The project and location from which the Meshes should be listed, specified in the format + * `projects/locations`. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends NetworkServicesRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The project and location from which the Meshes should be listed, specified in the format + * `projects/locations`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListMeshesResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The project and location from which the Meshes should be listed, specified in + * the format `projects/locations`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The project and location from which the Meshes should be listed, specified in the format + `projects/locations`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The project and location from which the Meshes should be listed, specified in + * the format `projects/locations`. + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Maximum number of Meshes to return per call. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Maximum number of Meshes to return per call. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Maximum number of Meshes to return per call. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * The value returned by the last `ListMeshesResponse` Indicates that this is a + * continuation of a prior `ListMeshes` call, and that the system should return the next + * page of data. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The value returned by the last `ListMeshesResponse` Indicates that this is a continuation of a + prior `ListMeshes` call, and that the system should return the next page of data. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * The value returned by the last `ListMeshesResponse` Indicates that this is a + * continuation of a prior `ListMeshes` call, and that the system should return the next + * page of data. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Optional. If true, allow partial responses for multi-regional Aggregated List requests. + * Otherwise if one of the locations is down or unreachable, the Aggregated List request + * will fail. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise + if one of the locations is down or unreachable, the Aggregated List request will fail. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Optional. If true, allow partial responses for multi-regional Aggregated List requests. + * Otherwise if one of the locations is down or unreachable, the Aggregated List request + * will fail. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the parameters of a single Mesh. + * + * Create a request for the method "meshes.patch". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. Name of the Mesh resource. It matches pattern `projects/locations/meshes/`. + * @param content the {@link com.google.api.services.networkservices.v1.model.Mesh} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.Mesh content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends NetworkServicesRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Identifier. Name of the Mesh resource. It matches pattern `projects/locations/meshes/`. + * @param content the {@link com.google.api.services.networkservices.v1.model.Mesh} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.networkservices.v1.model.Mesh content) { + super(NetworkServices.this, "PATCH", REST_PATH, content, com.google.api.services.networkservices.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/meshes/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. Name of the Mesh resource. It matches pattern `projects/locations/meshes/`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. Name of the Mesh resource. It matches pattern `projects/locations/meshes/`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Name of the Mesh resource. It matches pattern `projects/locations/meshes/`. + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/meshes/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the Mesh + * resource by the update. The fields specified in the update_mask are relative to the + * resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then all fields will be overwritten. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to specify the fields to be overwritten in the Mesh resource by the + update. The fields specified in the update_mask are relative to the resource, not the full request. + A field will be overwritten if it is in the mask. If the user does not provide a mask then all + fields will be overwritten. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the Mesh + * resource by the update. The fields specified in the update_mask are relative to the + * resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then all fields will be overwritten. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the RouteViews collection. + * + *The typical use is:
+ *
+ * {@code NetworkServices networkservices = new NetworkServices(...);}
+ * {@code NetworkServices.RouteViews.List request = networkservices.routeViews().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public RouteViews routeViews() {
+ return new RouteViews();
+ }
+
+ /**
+ * The "routeViews" collection of methods.
+ */
+ public class RouteViews {
+
+ /**
+ * Get a single RouteView of a Mesh.
+ *
+ * Create a request for the method "routeViews.get".
+ *
+ * This request holds the parameters needed by the networkservices server. After setting any
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ *
+ * @param name Required. Name of the MeshRouteView resource. Format:
+ * projects/{project_number}/locations/{location}/meshes/{mesh}/routeViews/{route_view}
+ * @return the request
+ */
+ public Get get(java.lang.String name) throws java.io.IOException {
+ Get result = new Get(name);
+ initialize(result);
+ return result;
+ }
+
+ public class Get extends NetworkServicesRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. Name of the MeshRouteView resource. Format: + * projects/{project_number}/locations/{location}/meshes/{mesh}/routeViews/{route_view} + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.MeshRouteView.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/meshes/[^/]+/routeViews/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the MeshRouteView resource. Format: + * projects/{project_number}/locations/{location}/meshes/{mesh}/routeViews/{route_view} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the MeshRouteView resource. Format: + projects/{project_number}/locations/{location}/meshes/{mesh}/routeViews/{route_view} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the MeshRouteView resource. Format: + * projects/{project_number}/locations/{location}/meshes/{mesh}/routeViews/{route_view} + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/meshes/[^/]+/routeViews/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists RouteViews + * + * Create a request for the method "routeViews.list". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The Mesh to which a Route is associated. Format: + * projects/{project_number}/locations/{location}/meshes/{mesh} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends NetworkServicesRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The Mesh to which a Route is associated. Format: + * projects/{project_number}/locations/{location}/meshes/{mesh} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListMeshRouteViewsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/meshes/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The Mesh to which a Route is associated. Format: + * projects/{project_number}/locations/{location}/meshes/{mesh} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The Mesh to which a Route is associated. Format: + projects/{project_number}/locations/{location}/meshes/{mesh} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The Mesh to which a Route is associated. Format: + * projects/{project_number}/locations/{location}/meshes/{mesh} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/meshes/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Maximum number of MeshRouteViews to return per call. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Maximum number of MeshRouteViews to return per call. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Maximum number of MeshRouteViews to return per call. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * The value returned by the last `ListMeshRouteViewsResponse` Indicates that this is a + * continuation of a prior `ListMeshRouteViews` call, and that the system should return + * the next page of data. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The value returned by the last `ListMeshRouteViewsResponse` Indicates that this is a continuation + of a prior `ListMeshRouteViews` call, and that the system should return the next page of data. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * The value returned by the last `ListMeshRouteViewsResponse` Indicates that this is a + * continuation of a prior `ListMeshRouteViews` call, and that the system should return + * the next page of data. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + } + /** + * An accessor for creating requests from the MulticastConsumerAssociations collection. + * + *The typical use is:
+ *
+ * {@code NetworkServices networkservices = new NetworkServices(...);}
+ * {@code NetworkServices.MulticastConsumerAssociations.List request = networkservices.multicastConsumerAssociations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public MulticastConsumerAssociations multicastConsumerAssociations() {
+ return new MulticastConsumerAssociations();
+ }
+
+ /**
+ * The "multicastConsumerAssociations" collection of methods.
+ */
+ public class MulticastConsumerAssociations {
+
+ /**
+ * Creates a new multicast consumer association in a given project and location.
+ *
+ * Create a request for the method "multicastConsumerAssociations.create".
+ *
+ * This request holds the parameters needed by the networkservices server. After setting any
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The parent resource of the multicast consumer association. Use the following format:
+ * `projects/locations`.
+ * @param content the {@link com.google.api.services.networkservices.v1.model.MulticastConsumerAssociation}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.MulticastConsumerAssociation content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends NetworkServicesRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent resource of the multicast consumer association. Use the following format: + * `projects/locations`. + * @param content the {@link com.google.api.services.networkservices.v1.model.MulticastConsumerAssociation} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.networkservices.v1.model.MulticastConsumerAssociation content) { + super(NetworkServices.this, "POST", REST_PATH, content, com.google.api.services.networkservices.v1.model.Operation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource of the multicast consumer association. Use the following + * format: `projects/locations`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the multicast consumer association. Use the following format: + `projects/locations`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource of the multicast consumer association. Use the following + * format: `projects/locations`. + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Required. A unique name for the multicast consumer association. The name is restricted + * to lower-case letters, numbers, and hyphen, with the first character a lower-case + * letter, and the last a letter or a number. The name must not exceed 48 characters. + */ + @com.google.api.client.util.Key + private java.lang.String multicastConsumerAssociationId; + + /** Required. A unique name for the multicast consumer association. The name is restricted to lower- + case letters, numbers, and hyphen, with the first character a lower-case letter, and the last a + letter or a number. The name must not exceed 48 characters. + */ + public java.lang.String getMulticastConsumerAssociationId() { + return multicastConsumerAssociationId; + } + + /** + * Required. A unique name for the multicast consumer association. The name is restricted + * to lower-case letters, numbers, and hyphen, with the first character a lower-case + * letter, and the last a letter or a number. The name must not exceed 48 characters. + */ + public Create setMulticastConsumerAssociationId(java.lang.String multicastConsumerAssociationId) { + this.multicastConsumerAssociationId = multicastConsumerAssociationId; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes after the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public Create setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single multicast consumer association. + * + * Create a request for the method "multicastConsumerAssociations.delete". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the multicast consumer association to delete. Use the following + * format: `projects/locations/multicastConsumerAssociations`. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends NetworkServicesRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the multicast consumer association to delete. Use the following + * format: `projects/locations/multicastConsumerAssociations`. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(NetworkServices.this, "DELETE", REST_PATH, null, com.google.api.services.networkservices.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/multicastConsumerAssociations/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the multicast consumer association to delete. Use the + * following format: `projects/locations/multicastConsumerAssociations`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the multicast consumer association to delete. Use the following + format: `projects/locations/multicastConsumerAssociations`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the multicast consumer association to delete. Use the + * following format: `projects/locations/multicastConsumerAssociations`. + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/multicastConsumerAssociations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes after the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single multicast consumer association. + * + * Create a request for the method "multicastConsumerAssociations.get". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the multicast consumer association to get. Use the following format: + * `projects/locations/multicastConsumerAssociations`. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends NetworkServicesRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the multicast consumer association to get. Use the following format: + * `projects/locations/multicastConsumerAssociations`. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.MulticastConsumerAssociation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/multicastConsumerAssociations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the multicast consumer association to get. Use the + * following format: `projects/locations/multicastConsumerAssociations`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the multicast consumer association to get. Use the following format: + `projects/locations/multicastConsumerAssociations`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the multicast consumer association to get. Use the + * following format: `projects/locations/multicastConsumerAssociations`. + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/multicastConsumerAssociations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists multicast consumer associations in a given project and location. + * + * Create a request for the method "multicastConsumerAssociations.list". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource for which to list multicast consumer associations. Use the following + * format: `projects/locations`. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends NetworkServicesRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent resource for which to list multicast consumer associations. Use the following + * format: `projects/locations`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListMulticastConsumerAssociationsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource for which to list multicast consumer associations. Use + * the following format: `projects/locations`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource for which to list multicast consumer associations. Use the following + format: `projects/locations`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource for which to list multicast consumer associations. Use + * the following format: `projects/locations`. + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. A filter expression that filters the resources listed in the response. The + * expression must be of the form ` ` where operators: `<`, `>`, `<=`, `>=`, `!=`, `=`, + * `:` are supported (colon `:` represents a HAS operator which is roughly synonymous with + * equality). can refer to a proto or JSON field, or a synthetic field. Field names can be + * camelCase or snake_case. Examples: * Filter by name: name = "RESOURCE_NAME" * Filter by + * labels: * Resources that have a key named `foo` labels.foo:* * Resources that have a + * key named `foo` whose value is `bar` labels.foo = bar + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. A filter expression that filters the resources listed in the response. The expression + must be of the form ` ` where operators: `<`, `>`, `<=`, `>=`, `!=`, `=`, `:` are supported (colon + `:` represents a HAS operator which is roughly synonymous with equality). can refer to a proto or + JSON field, or a synthetic field. Field names can be camelCase or snake_case. Examples: * Filter by + name: name = "RESOURCE_NAME" * Filter by labels: * Resources that have a key named `foo` + labels.foo:* * Resources that have a key named `foo` whose value is `bar` labels.foo = bar + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. A filter expression that filters the resources listed in the response. The + * expression must be of the form ` ` where operators: `<`, `>`, `<=`, `>=`, `!=`, `=`, + * `:` are supported (colon `:` represents a HAS operator which is roughly synonymous with + * equality). can refer to a proto or JSON field, or a synthetic field. Field names can be + * camelCase or snake_case. Examples: * Filter by name: name = "RESOURCE_NAME" * Filter by + * labels: * Resources that have a key named `foo` labels.foo:* * Resources that have a + * key named `foo` whose value is `bar` labels.foo = bar + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. A field used to sort the results by a certain order. */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. A field used to sort the results by a certain order. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. A field used to sort the results by a certain order. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of multicast consumer associations to return per call. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of multicast consumer associations to return per call. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of multicast consumer associations to return per call. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A page token from an earlier query, as returned in `next_page_token`. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token from an earlier query, as returned in `next_page_token`. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A page token from an earlier query, as returned in `next_page_token`. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the parameters of a single multicast consumer association. + * + * Create a request for the method "multicastConsumerAssociations.patch". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The resource name of the multicast consumer association. Use the following format: + * `projects/locations/multicastConsumerAssociations`. + * @param content the {@link com.google.api.services.networkservices.v1.model.MulticastConsumerAssociation} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.MulticastConsumerAssociation content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends NetworkServicesRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Identifier. The resource name of the multicast consumer association. Use the following format: + * `projects/locations/multicastConsumerAssociations`. + * @param content the {@link com.google.api.services.networkservices.v1.model.MulticastConsumerAssociation} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.networkservices.v1.model.MulticastConsumerAssociation content) { + super(NetworkServices.this, "PATCH", REST_PATH, content, com.google.api.services.networkservices.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/multicastConsumerAssociations/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The resource name of the multicast consumer association. Use the following + * format: `projects/locations/multicastConsumerAssociations`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name of the multicast consumer association. Use the following format: + `projects/locations/multicastConsumerAssociations`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the multicast consumer association. Use the following + * format: `projects/locations/multicastConsumerAssociations`. + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/multicastConsumerAssociations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes after the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * MulticastConsumerAssociation resource by the update. The fields specified in the + * `update_mask` are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. If the user does not provide a mask then all mutable + * fields present in the request will be overwritten. + */ + @com.google.api.client.util.Key + private String updateMask; - /** - * The value returned by the last `ListMeshRouteViewsResponse` Indicates that this is a - * continuation of a prior `ListMeshRouteViews` call, and that the system should return - * the next page of data. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** Optional. Field mask is used to specify the fields to be overwritten in the + MulticastConsumerAssociation resource by the update. The fields specified in the `update_mask` are + relative to the resource, not the full request. A field will be overwritten if it is in the mask. + If the user does not provide a mask then all mutable fields present in the request will be + overwritten. + */ + public String getUpdateMask() { + return updateMask; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * MulticastConsumerAssociation resource by the update. The fields specified in the + * `update_mask` are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. If the user does not provide a mask then all mutable + * fields present in the request will be overwritten. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; } + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } } + } /** - * An accessor for creating requests from the MulticastConsumerAssociations collection. + * An accessor for creating requests from the MulticastGroupConsumerActivations collection. * *The typical use is:
*
* {@code NetworkServices networkservices = new NetworkServices(...);}
- * {@code NetworkServices.MulticastConsumerAssociations.List request = networkservices.multicastConsumerAssociations().list(parameters ...)}
+ * {@code NetworkServices.MulticastGroupConsumerActivations.List request = networkservices.multicastGroupConsumerActivations().list(parameters ...)}
*
*
* @return the resource collection
*/
- public MulticastConsumerAssociations multicastConsumerAssociations() {
- return new MulticastConsumerAssociations();
+ public MulticastGroupConsumerActivations multicastGroupConsumerActivations() {
+ return new MulticastGroupConsumerActivations();
}
/**
- * The "multicastConsumerAssociations" collection of methods.
+ * The "multicastGroupConsumerActivations" collection of methods.
*/
- public class MulticastConsumerAssociations {
+ public class MulticastGroupConsumerActivations {
/**
- * Creates a new multicast consumer association in a given project and location.
+ * Creates a new multicast group consumer activation in a given project and location.
*
- * Create a request for the method "multicastConsumerAssociations.create".
+ * Create a request for the method "multicastGroupConsumerActivations.create".
*
* This request holds the parameters needed by the networkservices server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
- * @param parent Required. The parent resource of the multicast consumer association. Use the following format:
+ * @param parent Required. The parent resource of the multicast group consumer activation. Use the following format:
* `projects/locations`.
- * @param content the {@link com.google.api.services.networkservices.v1.model.MulticastConsumerAssociation}
+ * @param content the {@link com.google.api.services.networkservices.v1.model.MulticastGroupConsumerActivation}
* @return the request
*/
- public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.MulticastConsumerAssociation content) throws java.io.IOException {
+ public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.MulticastGroupConsumerActivation content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
@@ -12668,15 +14515,15 @@ public Create create(java.lang.String parent, com.google.api.services.networkser
public class Create extends NetworkServicesRequest* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. The resource name of the multicast consumer association to get. Use the following format: - * `projects/locations/multicastConsumerAssociations`. + * @param name Required. The resource name of the multicast group consumer activation to get. Use the following + * format: `projects/locations/multicastGroupConsumerActivations`. * @since 1.13 */ protected Get(java.lang.String name) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.MulticastConsumerAssociation.class); + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.MulticastGroupConsumerActivation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/multicastConsumerAssociations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/multicastGroupConsumerActivations/[^/]+$"); } } @@ -13152,28 +15001,28 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the multicast consumer association to get. Use the - * following format: `projects/locations/multicastConsumerAssociations`. + * Required. The resource name of the multicast group consumer activation to get. Use the + * following format: `projects/locations/multicastGroupConsumerActivations`. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name of the multicast consumer association to get. Use the following format: - `projects/locations/multicastConsumerAssociations`. + /** Required. The resource name of the multicast group consumer activation to get. Use the following + format: `projects/locations/multicastGroupConsumerActivations`. */ public java.lang.String getName() { return name; } /** - * Required. The resource name of the multicast consumer association to get. Use the - * following format: `projects/locations/multicastConsumerAssociations`. + * Required. The resource name of the multicast group consumer activation to get. Use the + * following format: `projects/locations/multicastGroupConsumerActivations`. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/multicastConsumerAssociations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/multicastGroupConsumerActivations/[^/]+$"); } this.name = name; return this; @@ -13185,15 +15034,15 @@ public Get set(String parameterName, Object value) { } } /** - * Lists multicast consumer associations in a given project and location. + * Lists multicast group consumer activations in a given project and location. * - * Create a request for the method "multicastConsumerAssociations.list". + * Create a request for the method "multicastGroupConsumerActivations.list". * * This request holds the parameters needed by the networkservices server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The parent resource for which to list multicast consumer associations. Use the following - * format: `projects/locations`. + * @param parent Required. The parent resource for which to list multicast group consumer activations. Use the + * following format: `projects/locations`. * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -13202,29 +15051,29 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends NetworkServicesRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The parent resource for which to list multicast consumer associations. Use the following - * format: `projects/locations`. + * @param parent Required. The parent resource for which to list multicast group consumer activations. Use the + * following format: `projects/locations`. * @since 1.13 */ protected List(java.lang.String parent) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListMulticastConsumerAssociationsResponse.class); + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListMulticastGroupConsumerActivationsResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -13299,22 +15148,22 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent resource for which to list multicast consumer associations. Use - * the following format: `projects/locations`. + * Required. The parent resource for which to list multicast group consumer activations. + * Use the following format: `projects/locations`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent resource for which to list multicast consumer associations. Use the following - format: `projects/locations`. + /** Required. The parent resource for which to list multicast group consumer activations. Use the + following format: `projects/locations`. */ public java.lang.String getParent() { return parent; } /** - * Required. The parent resource for which to list multicast consumer associations. Use - * the following format: `projects/locations`. + * Required. The parent resource for which to list multicast group consumer activations. + * Use the following format: `projects/locations`. */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -13380,19 +15229,21 @@ public List setOrderBy(java.lang.String orderBy) { } /** - * Optional. The maximum number of multicast consumer associations to return per call. + * Optional. The maximum number of multicast group consumer activations to return per + * call. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. The maximum number of multicast consumer associations to return per call. + /** Optional. The maximum number of multicast group consumer activations to return per call. */ public java.lang.Integer getPageSize() { return pageSize; } /** - * Optional. The maximum number of multicast consumer associations to return per call. + * Optional. The maximum number of multicast group consumer activations to return per + * call. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; @@ -13421,19 +15272,19 @@ public List set(String parameterName, Object value) { } } /** - * Updates the parameters of a single multicast consumer association. + * Updates the parameters of a single multicast group consumer activation. * - * Create a request for the method "multicastConsumerAssociations.patch". + * Create a request for the method "multicastGroupConsumerActivations.patch". * * This request holds the parameters needed by the networkservices server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Identifier. The resource name of the multicast consumer association. Use the following format: - * `projects/locations/multicastConsumerAssociations`. - * @param content the {@link com.google.api.services.networkservices.v1.model.MulticastConsumerAssociation} + * @param name Identifier. The resource name of the multicast group consumer activation. Use the following format: + * `projects/locations/multicastGroupConsumerActivations`. + * @param content the {@link com.google.api.services.networkservices.v1.model.MulticastGroupConsumerActivation} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.MulticastConsumerAssociation content) throws java.io.IOException { + public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.MulticastGroupConsumerActivation content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; @@ -13444,31 +15295,31 @@ public class Patch extends NetworkServicesRequestThe typical use is:
*
* {@code NetworkServices networkservices = new NetworkServices(...);}
- * {@code NetworkServices.MulticastGroupConsumerActivations.List request = networkservices.multicastGroupConsumerActivations().list(parameters ...)}
+ * {@code NetworkServices.Operations.List request = networkservices.operations().list(parameters ...)}
*
*
* @return the resource collection
*/
- public MulticastGroupConsumerActivations multicastGroupConsumerActivations() {
- return new MulticastGroupConsumerActivations();
+ public Operations operations() {
+ return new Operations();
}
/**
- * The "multicastGroupConsumerActivations" collection of methods.
+ * The "operations" collection of methods.
*/
- public class MulticastGroupConsumerActivations {
-
- /**
- * Creates a new multicast group consumer activation in a given project and location.
- *
- * Create a request for the method "multicastGroupConsumerActivations.create".
- *
- * This request holds the parameters needed by the networkservices server. After setting any
- * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The parent resource of the multicast group consumer activation. Use the following format:
- * `projects/locations`.
- * @param content the {@link com.google.api.services.networkservices.v1.model.MulticastGroupConsumerActivation}
- * @return the request
- */
- public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.MulticastGroupConsumerActivation content) throws java.io.IOException {
- Create result = new Create(parent, content);
- initialize(result);
- return result;
- }
-
- public class Create extends NetworkServicesRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The parent resource of the multicast group consumer activation. Use the following format: - * `projects/locations`. - * @param content the {@link com.google.api.services.networkservices.v1.model.MulticastGroupConsumerActivation} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.networkservices.v1.model.MulticastGroupConsumerActivation content) { - super(NetworkServices.this, "POST", REST_PATH, content, com.google.api.services.networkservices.v1.model.Operation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The parent resource of the multicast group consumer activation. Use the - * following format: `projects/locations`. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The parent resource of the multicast group consumer activation. Use the following format: - `projects/locations`. - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The parent resource of the multicast group consumer activation. Use the - * following format: `projects/locations`. - */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Required. A unique name for the multicast group consumer activation. The name is - * restricted to lower-case letters, numbers, and hyphen, with the first character a - * lower-case letter, and the last a letter or a number. The name must not exceed 48 - * characters. - */ - @com.google.api.client.util.Key - private java.lang.String multicastGroupConsumerActivationId; - - /** Required. A unique name for the multicast group consumer activation. The name is restricted to - lower-case letters, numbers, and hyphen, with the first character a lower-case letter, and the last - a letter or a number. The name must not exceed 48 characters. - */ - public java.lang.String getMulticastGroupConsumerActivationId() { - return multicastGroupConsumerActivationId; - } - - /** - * Required. A unique name for the multicast group consumer activation. The name is - * restricted to lower-case letters, numbers, and hyphen, with the first character a - * lower-case letter, and the last a letter or a number. The name must not exceed 48 - * characters. - */ - public Create setMulticastGroupConsumerActivationId(java.lang.String multicastGroupConsumerActivationId) { - this.multicastGroupConsumerActivationId = multicastGroupConsumerActivationId; - return this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * after the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes after the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * after the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public Create setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } + public class Operations { - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } /** - * Deletes a single multicast group consumer activation. + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. * - * Create a request for the method "multicastGroupConsumerActivations.delete". + * Create a request for the method "operations.cancel". * * This request holds the parameters needed by the networkservices server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * - * @param name Required. The resource name of the multicast group consumer activation to delete. Use the following - * format: `projects/locations/multicastGroupConsumerActivations`. + * @param name The name of the operation resource to be cancelled. + * @param content the {@link com.google.api.services.networkservices.v1.model.CancelOperationRequest} * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public Cancel cancel(java.lang.String name, com.google.api.services.networkservices.v1.model.CancelOperationRequest content) throws java.io.IOException { + Cancel result = new Cancel(name, content); initialize(result); return result; } - public class Delete extends NetworkServicesRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. The resource name of the multicast group consumer activation to delete. Use the following - * format: `projects/locations/multicastGroupConsumerActivations`. + * @param name The name of the operation resource to be cancelled. + * @param content the {@link com.google.api.services.networkservices.v1.model.CancelOperationRequest} * @since 1.13 */ - protected Delete(java.lang.String name) { - super(NetworkServices.this, "DELETE", REST_PATH, null, com.google.api.services.networkservices.v1.model.Operation.class); + protected Cancel(java.lang.String name, com.google.api.services.networkservices.v1.model.CancelOperationRequest content) { + super(NetworkServices.this, "POST", REST_PATH, content, com.google.api.services.networkservices.v1.model.Empty.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/multicastGroupConsumerActivations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The resource name of the multicast group consumer activation to delete. Use - * the following format: `projects/locations/multicastGroupConsumerActivations`. - */ + /** The name of the operation resource to be cancelled. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name of the multicast group consumer activation to delete. Use the following - format: `projects/locations/multicastGroupConsumerActivations`. + /** The name of the operation resource to be cancelled. */ public java.lang.String getName() { return name; } - /** - * Required. The resource name of the multicast group consumer activation to delete. Use - * the following format: `projects/locations/multicastGroupConsumerActivations`. - */ - public Delete setName(java.lang.String name) { + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/multicastGroupConsumerActivations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } this.name = name; return this; } - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * after the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes after the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * after the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } } /** - * Gets details of a single multicast group consumer activation. + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. * - * Create a request for the method "multicastGroupConsumerActivations.get". + * Create a request for the method "operations.delete". * * This request holds the parameters needed by the networkservices server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The resource name of the multicast group consumer activation to get. Use the following - * format: `projects/locations/multicastGroupConsumerActivations`. + * @param name The name of the operation resource to be deleted. * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Get extends NetworkServicesRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. The resource name of the multicast group consumer activation to get. Use the following - * format: `projects/locations/multicastGroupConsumerActivations`. + * @param name The name of the operation resource to be deleted. * @since 1.13 */ - protected Get(java.lang.String name) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.MulticastGroupConsumerActivation.class); + protected Delete(java.lang.String name) { + super(NetworkServices.this, "DELETE", REST_PATH, null, com.google.api.services.networkservices.v1.model.Empty.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/multicastGroupConsumerActivations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The resource name of the multicast group consumer activation to get. Use the - * following format: `projects/locations/multicastGroupConsumerActivations`. - */ + /** The name of the operation resource to be deleted. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name of the multicast group consumer activation to get. Use the following - format: `projects/locations/multicastGroupConsumerActivations`. + /** The name of the operation resource to be deleted. */ public java.lang.String getName() { return name; } - /** - * Required. The resource name of the multicast group consumer activation to get. Use the - * following format: `projects/locations/multicastGroupConsumerActivations`. - */ - public Get setName(java.lang.String name) { + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/multicastGroupConsumerActivations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } this.name = name; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Lists multicast group consumer activations in a given project and location. + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. * - * Create a request for the method "multicastGroupConsumerActivations.list". + * Create a request for the method "operations.get". * * This request holds the parameters needed by the networkservices server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param parent Required. The parent resource for which to list multicast group consumer activations. Use the - * following format: `projects/locations`. + * @param name The name of the operation resource. * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class List extends NetworkServicesRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The parent resource for which to list multicast group consumer activations. Use the - * following format: `projects/locations`. + * @param name The name of the operation resource. * @since 1.13 */ - protected List(java.lang.String parent) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListMulticastGroupConsumerActivationsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Get(java.lang.String name) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @@ -14256,575 +15844,497 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The parent resource for which to list multicast group consumer activations. - * Use the following format: `projects/locations`. - */ + /** The name of the operation resource. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The parent resource for which to list multicast group consumer activations. Use the - following format: `projects/locations`. + /** The name of the operation resource. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** - * Required. The parent resource for which to list multicast group consumer activations. - * Use the following format: `projects/locations`. - */ - public List setParent(java.lang.String parent) { + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } - this.parent = parent; - return this; - } - - /** - * Optional. A filter expression that filters the resources listed in the response. The - * expression must be of the form ` ` where operators: `<`, `>`, `<=`, `>=`, `!=`, `=`, - * `:` are supported (colon `:` represents a HAS operator which is roughly synonymous with - * equality). can refer to a proto or JSON field, or a synthetic field. Field names can be - * camelCase or snake_case. Examples: * Filter by name: name = "RESOURCE_NAME" * Filter by - * labels: * Resources that have a key named `foo` labels.foo:* * Resources that have a - * key named `foo` whose value is `bar` labels.foo = bar - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter expression that filters the resources listed in the response. The expression - must be of the form ` ` where operators: `<`, `>`, `<=`, `>=`, `!=`, `=`, `:` are supported (colon - `:` represents a HAS operator which is roughly synonymous with equality). can refer to a proto or - JSON field, or a synthetic field. Field names can be camelCase or snake_case. Examples: * Filter by - name: name = "RESOURCE_NAME" * Filter by labels: * Resources that have a key named `foo` - labels.foo:* * Resources that have a key named `foo` whose value is `bar` labels.foo = bar - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. A filter expression that filters the resources listed in the response. The - * expression must be of the form ` ` where operators: `<`, `>`, `<=`, `>=`, `!=`, `=`, - * `:` are supported (colon `:` represents a HAS operator which is roughly synonymous with - * equality). can refer to a proto or JSON field, or a synthetic field. Field names can be - * camelCase or snake_case. Examples: * Filter by name: name = "RESOURCE_NAME" * Filter by - * labels: * Resources that have a key named `foo` labels.foo:* * Resources that have a - * key named `foo` whose value is `bar` labels.foo = bar - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** Optional. A field used to sort the results by a certain order. */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Optional. A field used to sort the results by a certain order. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** Optional. A field used to sort the results by a certain order. */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Optional. The maximum number of multicast group consumer activations to return per - * call. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The maximum number of multicast group consumer activations to return per call. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. The maximum number of multicast group consumer activations to return per - * call. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** Optional. A page token from an earlier query, as returned in `next_page_token`. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. A page token from an earlier query, as returned in `next_page_token`. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** Optional. A page token from an earlier query, as returned in `next_page_token`. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + this.name = name; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Updates the parameters of a single multicast group consumer activation. + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. * - * Create a request for the method "multicastGroupConsumerActivations.patch". + * Create a request for the method "operations.list". * * This request holds the parameters needed by the networkservices server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name Identifier. The resource name of the multicast group consumer activation. Use the following format: - * `projects/locations/multicastGroupConsumerActivations`. - * @param content the {@link com.google.api.services.networkservices.v1.model.MulticastGroupConsumerActivation} + * @param name The name of the operation's parent resource. * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.MulticastGroupConsumerActivation content) throws java.io.IOException { - Patch result = new Patch(name, content); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); initialize(result); return result; } - public class Patch extends NetworkServicesRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name Identifier. The resource name of the multicast group consumer activation. Use the following format: - * `projects/locations/multicastGroupConsumerActivations`. - * @param content the {@link com.google.api.services.networkservices.v1.model.MulticastGroupConsumerActivation} + * @param name The name of the operation's parent resource. * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.networkservices.v1.model.MulticastGroupConsumerActivation content) { - super(NetworkServices.this, "PATCH", REST_PATH, content, com.google.api.services.networkservices.v1.model.Operation.class); + protected List(java.lang.String name) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListOperationsResponse.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/multicastGroupConsumerActivations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** - * Identifier. The resource name of the multicast group consumer activation. Use the - * following format: `projects/locations/multicastGroupConsumerActivations`. - */ + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation's parent resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** Identifier. The resource name of the multicast group consumer activation. Use the following format: - `projects/locations/multicastGroupConsumerActivations`. + /** The name of the operation's parent resource. */ public java.lang.String getName() { return name; } - /** - * Identifier. The resource name of the multicast group consumer activation. Use the - * following format: `projects/locations/multicastGroupConsumerActivations`. - */ - public Patch setName(java.lang.String name) { + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/multicastGroupConsumerActivations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+$"); } this.name = name; return this; } - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * after the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.Integer pageSize; - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server will know to ignore the request if it has already been - completed. The server will guarantee that for at least 60 minutes after the first request. For - example, consider a situation where you make an initial request and the request times out. If you - make the request again with the same request ID, the server can check if original operation with - the same request ID was received, and if so, will ignore the second request. This prevents clients - from accidentally creating duplicate commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + /** The standard list page size. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getPageSize() { + return pageSize; } - /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server will know to ignore the request if it - * has already been completed. The server will guarantee that for at least 60 minutes - * after the first request. For example, consider a situation where you make an initial - * request and the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID was received, - * and if so, will ignore the second request. This prevents clients from accidentally - * creating duplicate commitments. The request ID must be a valid UUID with the exception - * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * MulticastGroupConsumerActivation resource by the update. The fields specified in the - * `update_mask` are relative to the resource, not the full request. A field will be - * overwritten if it is in the mask. If the user does not provide a mask then all mutable - * fields present in the request will be overwritten. + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.Boolean returnPartialSuccess; - /** Optional. Field mask is used to specify the fields to be overwritten in the - MulticastGroupConsumerActivation resource by the update. The fields specified in the `update_mask` - are relative to the resource, not the full request. A field will be overwritten if it is in the - mask. If the user does not provide a mask then all mutable fields present in the request will be - overwritten. + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. */ - public String getUpdateMask() { - return updateMask; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * MulticastGroupConsumerActivation resource by the update. The fields specified in the - * `update_mask` are relative to the resource, not the full request. A field will be - * overwritten if it is in the mask. If the user does not provide a mask then all mutable - * fields present in the request will be overwritten. + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the Operations collection. + * An accessor for creating requests from the ProducerExtensions collection. * *The typical use is:
*
* {@code NetworkServices networkservices = new NetworkServices(...);}
- * {@code NetworkServices.Operations.List request = networkservices.operations().list(parameters ...)}
+ * {@code NetworkServices.ProducerExtensions.List request = networkservices.producerExtensions().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Operations operations() {
- return new Operations();
+ public ProducerExtensions producerExtensions() {
+ return new ProducerExtensions();
}
/**
- * The "operations" collection of methods.
+ * The "producerExtensions" collection of methods.
*/
- public class Operations {
+ public class ProducerExtensions {
/**
- * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
- * cancel the operation, but success is not guaranteed. If the server doesn't support this method,
- * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
- * methods to check whether the cancellation succeeded or whether the operation completed despite
- * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
- * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to
- * `Code.CANCELLED`.
+ * Creates a new `ProducerExtension` resource in a given project and location.
*
- * Create a request for the method "operations.cancel".
+ * Create a request for the method "producerExtensions.create".
*
* This request holds the parameters needed by the networkservices server. After setting any
- * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
- * @param name The name of the operation resource to be cancelled.
- * @param content the {@link com.google.api.services.networkservices.v1.model.CancelOperationRequest}
+ * @param parent Required. The parent resource of the `ProducerExtension` resource. Must be in the format
+ * `projects/{project}/locations/{location}`.
+ * @param content the {@link com.google.api.services.networkservices.v1.model.ProducerExtension}
* @return the request
*/
- public Cancel cancel(java.lang.String name, com.google.api.services.networkservices.v1.model.CancelOperationRequest content) throws java.io.IOException {
- Cancel result = new Cancel(name, content);
+ public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.ProducerExtension content) throws java.io.IOException {
+ Create result = new Create(parent, content);
initialize(result);
return result;
}
- public class Cancel extends NetworkServicesRequest{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation resource to be cancelled. - * @param content the {@link com.google.api.services.networkservices.v1.model.CancelOperationRequest} - * @since 1.13 - */ - protected Cancel(java.lang.String name, com.google.api.services.networkservices.v1.model.CancelOperationRequest content) { - super(NetworkServices.this, "POST", REST_PATH, content, com.google.api.services.networkservices.v1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + * @param parent Required. The parent resource of the `ProducerExtension` resource. Must be in the format + * `projects/{project}/locations/{location}`. + * @param content the {@link com.google.api.services.networkservices.v1.model.ProducerExtension} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.networkservices.v1.model.ProducerExtension content) { + super(NetworkServices.this, "POST", REST_PATH, content, com.google.api.services.networkservices.v1.model.Operation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to be cancelled. */ + /** + * Required. The parent resource of the `ProducerExtension` resource. Must be in the + * format `projects/{project}/locations/{location}`. + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** The name of the operation resource to be cancelled. + /** Required. The parent resource of the `ProducerExtension` resource. Must be in the format + `projects/{project}/locations/{location}`. */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { + /** + * Required. The parent resource of the `ProducerExtension` resource. Must be in the + * format `projects/{project}/locations/{location}`. + */ + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; + return this; + } + + /** Required. Short name of the `ProducerExtension` resource to be created. */ + @com.google.api.client.util.Key + private java.lang.String producerExtensionId; + + /** Required. Short name of the `ProducerExtension` resource to be created. + */ + public java.lang.String getProducerExtensionId() { + return producerExtensionId; + } + + /** Required. Short name of the `ProducerExtension` resource to be created. */ + public Create setProducerExtensionId(java.lang.String producerExtensionId) { + this.producerExtensionId = producerExtensionId; return this; } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * Deletes the specified `ProducerExtension` resource. * - * Create a request for the method "operations.delete". + * Create a request for the method "producerExtensions.delete". * * This request holds the parameters needed by the networkservices server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be deleted. + * @param name Required. A name of the `ProducerExtension` resource to delete. Must be in the format + * `projects/{project}/locations/{location}/producerExtensions/{producer_extension}`. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -14833,19 +16343,17 @@ public Delete delete(java.lang.String name) throws java.io.IOException { return result; } - public class Delete extends NetworkServicesRequest* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation resource. + * @param name Required. A name of the `ProducerExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/producerExtensions/{producer_extension}`. * @since 1.13 */ protected Get(java.lang.String name) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.Operation.class); + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ProducerExtension.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/producerExtensions/[^/]+$"); } } @@ -15061,22 +16593,29 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** + * Required. A name of the `ProducerExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/producerExtensions/{producer_extension}`. + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** Required. A name of the `ProducerExtension` resource to get. Must be in the format + `projects/{project}/locations/{location}/producerExtensions/{producer_extension}`. */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ + /** + * Required. A name of the `ProducerExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/producerExtensions/{producer_extension}`. + */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/producerExtensions/[^/]+$"); } this.name = name; return this; @@ -15088,50 +16627,50 @@ public Get set(String parameterName, Object value) { } } /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Lists `ProducerExtension` resources in a given project and location. * - * Create a request for the method "operations.list". + * Create a request for the method "producerExtensions.list". * * This request holds the parameters needed by the networkservices server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name The name of the operation's parent resource. + * @param parent Required. The project and location from which the `ProducerExtension` resources should be listed, + * specified in the format `projects/{project}/locations/{location}`. * @return the request */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class List extends NetworkServicesRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name The name of the operation's parent resource. + * @param parent Required. The project and location from which the `ProducerExtension` resources should be listed, + * specified in the format `projects/{project}/locations/{location}`. * @since 1.13 */ - protected List(java.lang.String name) { - super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListOperationsResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected List(java.lang.String parent) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListProducerExtensionsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + "^projects/[^/]+/locations/[^/]+$"); } } @@ -15201,107 +16740,73 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation's parent resource. */ + /** + * Required. The project and location from which the `ProducerExtension` resources should + * be listed, specified in the format `projects/{project}/locations/{location}`. + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** The name of the operation's parent resource. + /** Required. The project and location from which the `ProducerExtension` resources should be listed, + specified in the format `projects/{project}/locations/{location}`. */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { + /** + * Required. The project and location from which the `ProducerExtension` resources should + * be listed, specified in the format `projects/{project}/locations/{location}`. + */ + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + "^projects/[^/]+/locations/[^/]+$"); } - this.name = name; - return this; - } - - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } - - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; + this.parent = parent; return this; } - /** The standard list page size. */ + /** Optional. Maximum number of `ProducerExtension` resources to return per call. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** The standard list page size. + /** Optional. Maximum number of `ProducerExtension` resources to return per call. */ public java.lang.Integer getPageSize() { return pageSize; } - /** The standard list page size. */ + /** Optional. Maximum number of `ProducerExtension` resources to return per call. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } - /** The standard list page token. */ + /** + * Optional. The value returned by the last `ListProducerExtensionsResponse` Indicates + * that this is a continuation of a prior `ListProducerExtensions` call, and that the + * system should return the next page of data. + */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** The standard list page token. + /** Optional. The value returned by the last `ListProducerExtensionsResponse` Indicates that this is a + continuation of a prior `ListProducerExtensions` call, and that the system should return the next + page of data. */ public java.lang.String getPageToken() { return pageToken; } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. This - * can only be `true` when reading across collections. For example, when `parent` is set - * to `"projects/example/locations/-"`. This field is not supported by default and will - * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - * service or product specific documentation. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` - when reading across collections. For example, when `parent` is set to - `"projects/example/locations/-"`. This field is not supported by default and will result in an - `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific - documentation. + * Optional. The value returned by the last `ListProducerExtensionsResponse` Indicates + * that this is a continuation of a prior `ListProducerExtensions` call, and that the + * system should return the next page of data. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. This - * can only be `true` when reading across collections. For example, when `parent` is set - * to `"projects/example/locations/-"`. This field is not supported by default and will - * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - * service or product specific documentation. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/AgentConnectivityTemplate.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/AgentConnectivityTemplate.java index 00fab16400e..cae6d59e476 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/AgentConnectivityTemplate.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/AgentConnectivityTemplate.java @@ -46,6 +46,14 @@ public final class AgentConnectivityTemplate extends com.google.api.client.json. @com.google.api.client.util.Key private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Network Services API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExtensionBinding extends com.google.api.client.json.GenericJson { + + /** + * Output only. The timestamp when the resource was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. A human-readable description of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. Etag of the resource. If provided, it must match the server's etag. If the provided + * etag does not match the server's etag, the request will fail with a 409 ABORTED error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. Determines the behavior of the extension binding when the call to the extension fails + * or times out. Default value is `FALSE`. When set to `TRUE`, failures of the extension are + * silently ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean failOpen; + + /** + * Optional. Set of labels associated with the `ExtensionBinding` resource. The format must comply + * with [the following requirements](https://cloud.google.com/compute/docs/labeling- + * resources#requirements). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Network Services API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExtensionBindingMatchCondition extends com.google.api.client.json.GenericJson { + + /** + * Optional. Describes properties of a destination of a request. If specified, the extension will + * only be invoked on requests to destinations that match the specified criteria. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExtensionBindingMatchConditionTo to; + + /** + * Optional. Describes properties of a destination of a request. If specified, the extension will + * only be invoked on requests to destinations that match the specified criteria. + * @return value or {@code null} for none + */ + public ExtensionBindingMatchConditionTo getTo() { + return to; + } + + /** + * Optional. Describes properties of a destination of a request. If specified, the extension will + * only be invoked on requests to destinations that match the specified criteria. + * @param to to or {@code null} for none + */ + public ExtensionBindingMatchCondition setTo(ExtensionBindingMatchConditionTo to) { + this.to = to; + return this; + } + + @Override + public ExtensionBindingMatchCondition set(String fieldName, Object value) { + return (ExtensionBindingMatchCondition) super.set(fieldName, value); + } + + @Override + public ExtensionBindingMatchCondition clone() { + return (ExtensionBindingMatchCondition) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionHeaderMatch.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionHeaderMatch.java new file mode 100644 index 00000000000..f58a6471026 --- /dev/null +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionHeaderMatch.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.networkservices.v1.model; + +/** + * Determines how an HTTP header should be matched. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Network Services API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExtensionBindingMatchConditionHeaderMatch extends com.google.api.client.json.GenericJson { + + /** + * Required. Specifies the name of the header in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Specifies how the header match will be performed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExtensionBindingMatchConditionStringMatch value; + + /** + * Required. Specifies the name of the header in the request. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Specifies the name of the header in the request. + * @param name name or {@code null} for none + */ + public ExtensionBindingMatchConditionHeaderMatch setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. Specifies how the header match will be performed. + * @return value or {@code null} for none + */ + public ExtensionBindingMatchConditionStringMatch getValue() { + return value; + } + + /** + * Optional. Specifies how the header match will be performed. + * @param value value or {@code null} for none + */ + public ExtensionBindingMatchConditionHeaderMatch setValue(ExtensionBindingMatchConditionStringMatch value) { + this.value = value; + return this; + } + + @Override + public ExtensionBindingMatchConditionHeaderMatch set(String fieldName, Object value) { + return (ExtensionBindingMatchConditionHeaderMatch) super.set(fieldName, value); + } + + @Override + public ExtensionBindingMatchConditionHeaderMatch clone() { + return (ExtensionBindingMatchConditionHeaderMatch) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionStringMatch.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionStringMatch.java new file mode 100644 index 00000000000..4df2f5b1f5b --- /dev/null +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionStringMatch.java @@ -0,0 +1,180 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.networkservices.v1.model; + +/** + * Specifies matching logic for string values. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Network Services API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExtensionBindingMatchConditionStringMatch extends com.google.api.client.json.GenericJson { + + /** + * Optional. The input string must have the substring specified here. Note: empty contains match + * is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``xyz.abc.def`` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String contains; + + /** + * Optional. The input string must match exactly the string specified here. Examples: * ``abc`` + * only matches the value ``abc``. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String exact; + + /** + * Optional. If true, indicates the exact/prefix/suffix/contains matching should be case + * insensitive. For example, the matcher ``data`` will match both input string ``Data`` and + * ``data`` if set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean ignoreCase; + + /** + * Optional. The input string must have the prefix specified here. Note: empty prefix is not + * allowed. Examples: * ``abc`` matches the value ``abc.xyz`` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prefix; + + /** + * Optional. The input string must have the suffix specified here. Note: empty prefix is not + * allowed, please use regex instead. Examples: * ``abc`` matches the value ``xyz.abc`` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String suffix; + + /** + * Optional. The input string must have the substring specified here. Note: empty contains match + * is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``xyz.abc.def`` + * @return value or {@code null} for none + */ + public java.lang.String getContains() { + return contains; + } + + /** + * Optional. The input string must have the substring specified here. Note: empty contains match + * is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``xyz.abc.def`` + * @param contains contains or {@code null} for none + */ + public ExtensionBindingMatchConditionStringMatch setContains(java.lang.String contains) { + this.contains = contains; + return this; + } + + /** + * Optional. The input string must match exactly the string specified here. Examples: * ``abc`` + * only matches the value ``abc``. + * @return value or {@code null} for none + */ + public java.lang.String getExact() { + return exact; + } + + /** + * Optional. The input string must match exactly the string specified here. Examples: * ``abc`` + * only matches the value ``abc``. + * @param exact exact or {@code null} for none + */ + public ExtensionBindingMatchConditionStringMatch setExact(java.lang.String exact) { + this.exact = exact; + return this; + } + + /** + * Optional. If true, indicates the exact/prefix/suffix/contains matching should be case + * insensitive. For example, the matcher ``data`` will match both input string ``Data`` and + * ``data`` if set to true. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIgnoreCase() { + return ignoreCase; + } + + /** + * Optional. If true, indicates the exact/prefix/suffix/contains matching should be case + * insensitive. For example, the matcher ``data`` will match both input string ``Data`` and + * ``data`` if set to true. + * @param ignoreCase ignoreCase or {@code null} for none + */ + public ExtensionBindingMatchConditionStringMatch setIgnoreCase(java.lang.Boolean ignoreCase) { + this.ignoreCase = ignoreCase; + return this; + } + + /** + * Optional. The input string must have the prefix specified here. Note: empty prefix is not + * allowed. Examples: * ``abc`` matches the value ``abc.xyz`` + * @return value or {@code null} for none + */ + public java.lang.String getPrefix() { + return prefix; + } + + /** + * Optional. The input string must have the prefix specified here. Note: empty prefix is not + * allowed. Examples: * ``abc`` matches the value ``abc.xyz`` + * @param prefix prefix or {@code null} for none + */ + public ExtensionBindingMatchConditionStringMatch setPrefix(java.lang.String prefix) { + this.prefix = prefix; + return this; + } + + /** + * Optional. The input string must have the suffix specified here. Note: empty prefix is not + * allowed, please use regex instead. Examples: * ``abc`` matches the value ``xyz.abc`` + * @return value or {@code null} for none + */ + public java.lang.String getSuffix() { + return suffix; + } + + /** + * Optional. The input string must have the suffix specified here. Note: empty prefix is not + * allowed, please use regex instead. Examples: * ``abc`` matches the value ``xyz.abc`` + * @param suffix suffix or {@code null} for none + */ + public ExtensionBindingMatchConditionStringMatch setSuffix(java.lang.String suffix) { + this.suffix = suffix; + return this; + } + + @Override + public ExtensionBindingMatchConditionStringMatch set(String fieldName, Object value) { + return (ExtensionBindingMatchConditionStringMatch) super.set(fieldName, value); + } + + @Override + public ExtensionBindingMatchConditionStringMatch clone() { + return (ExtensionBindingMatchConditionStringMatch) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionTo.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionTo.java new file mode 100644 index 00000000000..2e96db0d8e8 --- /dev/null +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionTo.java @@ -0,0 +1,105 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.networkservices.v1.model; + +/** + * Describes properties of one or more destinations of a request. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Network Services API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExtensionBindingMatchConditionTo extends com.google.api.client.json.GenericJson { + + /** + * Optional. Describes properties of destination of a request. Within a destination, the match + * follows AND semantics across fields and OR semantics within a field, i.e. a match occurs when + * ANY path matches AND ANY header matches and ANY method matches. At least one of destination or + * not_destination must be specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExtensionBindingMatchConditionToDestination destination; + + /** + * Optional. Describes the negated properties of the request destination. Extension will not be + * invoked on requests that match the criteria specified in this field. At least one of + * destination or not_destination must be specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExtensionBindingMatchConditionToDestination notDestination; + + /** + * Optional. Describes properties of destination of a request. Within a destination, the match + * follows AND semantics across fields and OR semantics within a field, i.e. a match occurs when + * ANY path matches AND ANY header matches and ANY method matches. At least one of destination or + * not_destination must be specified. + * @return value or {@code null} for none + */ + public ExtensionBindingMatchConditionToDestination getDestination() { + return destination; + } + + /** + * Optional. Describes properties of destination of a request. Within a destination, the match + * follows AND semantics across fields and OR semantics within a field, i.e. a match occurs when + * ANY path matches AND ANY header matches and ANY method matches. At least one of destination or + * not_destination must be specified. + * @param destination destination or {@code null} for none + */ + public ExtensionBindingMatchConditionTo setDestination(ExtensionBindingMatchConditionToDestination destination) { + this.destination = destination; + return this; + } + + /** + * Optional. Describes the negated properties of the request destination. Extension will not be + * invoked on requests that match the criteria specified in this field. At least one of + * destination or not_destination must be specified. + * @return value or {@code null} for none + */ + public ExtensionBindingMatchConditionToDestination getNotDestination() { + return notDestination; + } + + /** + * Optional. Describes the negated properties of the request destination. Extension will not be + * invoked on requests that match the criteria specified in this field. At least one of + * destination or not_destination must be specified. + * @param notDestination notDestination or {@code null} for none + */ + public ExtensionBindingMatchConditionTo setNotDestination(ExtensionBindingMatchConditionToDestination notDestination) { + this.notDestination = notDestination; + return this; + } + + @Override + public ExtensionBindingMatchConditionTo set(String fieldName, Object value) { + return (ExtensionBindingMatchConditionTo) super.set(fieldName, value); + } + + @Override + public ExtensionBindingMatchConditionTo clone() { + return (ExtensionBindingMatchConditionTo) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionToDestination.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionToDestination.java new file mode 100644 index 00000000000..38b25f85414 --- /dev/null +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionToDestination.java @@ -0,0 +1,177 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.networkservices.v1.model; + +/** + * Describes properties of a single destination. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Network Services API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExtensionBindingMatchConditionToDestination extends com.google.api.client.json.GenericJson { + + /** + * Optional. A set of HTTP headers to match against. If not specified, requests with any headers + * are matched. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExtensionBindingMatchConditionToDestinationHeaderSet headerSet; + + /** + * Optional. A list of HTTP Hosts to match against. Limited to 10 hosts. If not specified, any + * host is allowed. If specified, a match occurs if any of the hosts matches the host value in the + * request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Network Services API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExtensionBindingMatchConditionToDestinationHeaderSet extends com.google.api.client.json.GenericJson { + + /** + * Required. A list of headers to match against in http header. If multiple header matches are + * provided, they will be evaluated as an AND, i.e. all header matches must match for the request + * to match. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Network Services API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExtensionBindingTarget extends com.google.api.client.json.GenericJson { + + /** + * Optional. The reference to the target resource, to which this binding should attach. Exactly + * one of `resources` or `scope` must be set. For Agent Gateway, this would be the full resource + * name, in the format: `projects/{project}/locations/{location}/agentGateways/{agent_gateway}`. + * For AI App, this would be the full resource name, in the format: + * `projects/{project}/locations/{location}/applications/{application}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Network Services API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExtensionBindingTargetScope extends com.google.api.client.json.GenericJson { + + /** + * Required. Parent resource name specification, in the format: `projects/{project_number}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** + * Required. Type of the resource to which the binding should attach. Limited to 1 resource type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Network Services API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListExtensionBindingsResponse extends com.google.api.client.json.GenericJson { + + /** + * List of `ExtensionBinding` resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Network Services API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListProducerExtensionsResponse extends com.google.api.client.json.GenericJson { + + /** + * If there might be more results than those appearing in this response, then `next_page_token` is + * included. To get the next set of results, call this method again using the value of + * `next_page_token` as `page_token`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * List of `ProducerExtension` resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Network Services API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ProducerExtension extends com.google.api.client.json.GenericJson { + + /** + * Output only. The timestamp when the resource was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. A human-readable description of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. Etag of the resource. If this is provided, it must match the server's etag. If the + * provided etag does not match the server's etag, the request will fail with a 409 ABORTED error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Required. The configuration for the service that this `ProducerExtension` offers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ProducerExtensionExtensionSettings extensionSettings; + + /** + * Optional. Set of labels associated with the `ProducerExtension` resource. The format must + * comply with [the following requirements]((https://cloud.google.com/compute/docs/labeling- + * resources#requirements). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Network Services API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ProducerExtensionExtensionSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. The `:authority` header in the request sent to the extension service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String authority; + + /** + * Optional. Whether the extension should function in observability mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean observabilityMode; + + /** + * Required. URI of the PSC attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * Required. The event types supported by the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List