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: com.google.apis google-api-services-networkservices - v1-rev20260803-2.0.0 + v1-rev20260807-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-networkservices:v1-rev20260803-2.0.0' + implementation 'com.google.apis:google-api-services-networkservices:v1-rev20260807-2.0.0' } ``` diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/NetworkServices.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/NetworkServices.java index 2a162bbc157..33c99791cdf 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/NetworkServices.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/NetworkServices.java @@ -5657,38 +5657,39 @@ public Patch set(String parameterName, Object value) { } /** - * An accessor for creating requests from the Gateways collection. + * An accessor for creating requests from the ExtensionBindings collection. * *

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 { - private static final String REST_PATH = "v1/{+parent}/gateways"; + private static final String REST_PATH = "v1/{+parent}/extensionBindings"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 the networkservices server. After setting any * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. @@ -5712,11 +5713,12 @@ public class Create extends NetworkServicesRequest * - * @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} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.networkservices.v1.model.Gateway content) { + protected Create(java.lang.String parent, com.google.api.services.networkservices.v1.model.ExtensionBinding 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()) { @@ -5782,21 +5784,22 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent resource of the Gateway. Must be in the format - * `projects/locations`. + * Required. The parent resource of the `ExtensionBinding` resource. Must be in the format + * `projects/{project}/locations/{location}`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent resource of the Gateway. Must be in the format `projects/locations`. + /** Required. The parent resource of the `ExtensionBinding` resource. Must be in the format + `projects/{project}/locations/{location}`. */ public java.lang.String getParent() { return parent; } /** - * Required. The parent resource of the Gateway. Must be in the format - * `projects/locations`. + * Required. The parent resource of the `ExtensionBinding` resource. Must be in the format + * `projects/{project}/locations/{location}`. */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -5808,19 +5811,19 @@ public Create setParent(java.lang.String parent) { return this; } - /** Required. Short name of the Gateway resource to be created. */ + /** Required. Short name of the `ExtensionBinding` resource to be created. */ @com.google.api.client.util.Key - private java.lang.String gatewayId; + private java.lang.String extensionBindingId; - /** Required. Short name of the Gateway resource to be created. + /** Required. Short name of the `ExtensionBinding` resource to be created. */ - public java.lang.String getGatewayId() { - return gatewayId; + public java.lang.String getExtensionBindingId() { + return extensionBindingId; } - /** Required. Short name of the Gateway resource to be created. */ - public Create setGatewayId(java.lang.String gatewayId) { - this.gatewayId = gatewayId; + /** Required. Short name of the `ExtensionBinding` resource to be created. */ + public Create setExtensionBindingId(java.lang.String extensionBindingId) { + this.extensionBindingId = extensionBindingId; return this; } @@ -5830,14 +5833,15 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes a single Gateway. + * Deletes the specified `ExtensionBinding` resource. * - * Create a request for the method "gateways.delete". + * Create a request for the method "extensionBindings.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`. + * @param name Required. A name of the `ExtensionBinding` resource to delete. Must be in the format + * `projects/{project}/locations/{location}/extensionBindings/{extension_binding}`. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -5851,12 +5855,12 @@ public class Delete extends NetworkServicesRequest * - * @param name Required. A name of the Gateway to delete. Must be in the format `projects/locations/gateways`. + * @param name Required. A name of the `ExtensionBinding` resource to delete. Must be in the format + * `projects/{project}/locations/{location}/extensionBindings/{extension_binding}`. * @since 1.13 */ protected Delete(java.lang.String name) { @@ -5873,7 +5878,7 @@ protected Delete(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/[^/]+$"); } } @@ -5933,46 +5938,64 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. A name of the Gateway to delete. Must be in the format - * `projects/locations/gateways`. + * Required. A name of the `ExtensionBinding` resource to delete. 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 delete. Must be in the format `projects/locations/gateways`. + /** Required. A name of the `ExtensionBinding` resource to delete. 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 delete. Must be in the format - * `projects/locations/gateways`. + * Required. A name of the `ExtensionBinding` resource to delete. Must be in the format + * `projects/{project}/locations/{location}/extensionBindings/{extension_binding}`. */ 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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/extensionBindings/[^/]+$"); } this.name = name; return this; } + /** Optional. The etag of the ExtensionBinding to delete. */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The etag of the ExtensionBinding to delete. + */ + public java.lang.String getEtag() { + return etag; + } + + /** Optional. The etag of the ExtensionBinding to delete. */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** - * Gets details of a single Gateway. + * Gets details of the specified `ExtensionBinding` resource. * - * Create a request for the method "gateways.get". + * Create a request for the method "extensionBindings.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 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}`. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -5981,33 +6004,34 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends NetworkServicesRequest { + public class Get extends NetworkServicesRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/gateways/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/extensionBindings/[^/]+$"); /** - * Gets details of a single Gateway. + * Gets details of the specified `ExtensionBinding` resource. * - * Create a request for the method "gateways.get". + * Create a request for the method "extensionBindings.get". * * This request holds the parameters needed by the the networkservices server. After setting any * 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 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 { + public class List extends NetworkServicesRequest { - private static final String REST_PATH = "v1/{+parent}/gateways"; + private static final String REST_PATH = "v1/{+parent}/extensionBindings"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 the networkservices server. After setting any * 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 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 NetworkServicesRequest * - * @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} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.networkservices.v1.model.Gateway content) { + protected Patch(java.lang.String name, com.google.api.services.networkservices.v1.model.ExtensionBinding 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/[^/]+/gateways/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/extensionBindings/[^/]+$"); } } @@ -6402,55 +6430,56 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Identifier. Name of the Gateway resource. It matches pattern - * `projects/locations/gateways/`. + * Identifier. Name of the `ExtensionBinding` resource in the following format: + * `projects/{project}/locations/{location}/extensionBindings/{extension_binding}`. */ @com.google.api.client.util.Key private java.lang.String name; - /** Identifier. Name of the Gateway resource. It matches pattern `projects/locations/gateways/`. + /** Identifier. Name of the `ExtensionBinding` resource in the following format: + `projects/{project}/locations/{location}/extensionBindings/{extension_binding}`. */ public java.lang.String getName() { return name; } /** - * Identifier. Name of the Gateway resource. It matches pattern - * `projects/locations/gateways/`. + * Identifier. Name of the `ExtensionBinding` resource in the following format: + * `projects/{project}/locations/{location}/extensionBindings/{extension_binding}`. */ 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/[^/]+/gateways/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/extensionBindings/[^/]+$"); } 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. + * Optional. Field mask is used to specify the fields to be overwritten in the + * `ExtensionBinding` 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. + /** Optional. Field mask is used to specify the fields to be overwritten in the `ExtensionBinding` + 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. + * Optional. Field mask is used to specify the fields to be overwritten in the + * `ExtensionBinding` 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; @@ -6463,1286 +6492,1261 @@ public Patch set(String parameterName, Object value) { } } + } + /** + * An accessor for creating requests from the Gateways collection. + * + *

The 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 { + + private static final String REST_PATH = "v1/{+parent}/gateways"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Get a single RouteView of a Gateway. + * Creates a new Gateway in a given project and location. * - * Create a request for the method "routeViews.get". + * Create a request for the method "gateways.create". * - * 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. + * This request holds the parameters needed by the the networkservices server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

{@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 { + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1/{+name}"; + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/gateways/[^/]+/routeViews/[^/]+$"); + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - /** - * Get a single RouteView of a Gateway. - * - * Create a request for the method "routeViews.get". - * - * This request holds the parameters needed by the the networkservices server. After setting any - * 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 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 { - /** - * 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; - } + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/gateways/[^/]+$"); - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } /** - * Lists RouteViews + * Deletes a single Gateway. * - * Create a request for the method "routeViews.list". + * 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 List#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the networkservices server. After setting any + * 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 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 { + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1/{+parent}/routeViews"; + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/gateways/[^/]+$"); + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - /** - * Lists RouteViews - * - * Create a request for the method "routeViews.list". - * - * This request holds the parameters needed by the the networkservices server. After setting any - * 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 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 { + public class Get extends NetworkServicesRequest { - private static final String REST_PATH = "v1/{+parent}/grpcRoutes"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/gateways/[^/]+$"); /** - * 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 the networkservices server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - *

{@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 { + public class List extends NetworkServicesRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+parent}/gateways"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/grpcRoutes/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 the networkservices server. After setting any - * 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.

+ * 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 { + /** Maximum number of Gateways 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. + */ + @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. + */ + 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. + */ + 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 Gateway. + * + * Create a request for the method "gateways.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} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.Gateway content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends NetworkServicesRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/grpcRoutes/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/gateways/[^/]+$"); /** - * Gets details of a single GrpcRoute. + * Updates the parameters of a single Gateway. * - * Create a request for the method "grpcRoutes.get". + * Create a request for the method "gateways.patch". * * This request holds the parameters needed by the the networkservices server. After setting any - * 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.

+ * 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 { - - private static final String REST_PATH = "v1/{+parent}/grpcRoutes"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** + * The "routeViews" collection of methods. + */ + public class RouteViews { /** - * Lists GrpcRoutes in a given project and location. + * Get a single RouteView of a Gateway. * - * Create a request for the method "grpcRoutes.list". + * Create a request for the method "routeViews.get". * - * This request holds the parameters needed by the the networkservices server. After setting any - * 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.

+ * 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 { - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + private static final String REST_PATH = "v1/{+name}"; - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/gateways/[^/]+/routeViews/[^/]+$"); - @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); - } + /** + * Get a single RouteView of a Gateway. + * + * Create a request for the method "routeViews.get". + * + * This request holds the parameters needed by the the networkservices server. After setting any + * 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 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 { - public class Patch extends NetworkServicesRequest { + private static final String REST_PATH = "v1/{+parent}/routeViews"; - private static final String REST_PATH = "v1/{+name}"; + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/gateways/[^/]+$"); - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/grpcRoutes/[^/]+$"); + /** + * Lists RouteViews + * + * Create a request for the method "routeViews.list". + * + * This request holds the parameters needed by the the networkservices server. After setting any + * 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 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 { + + private static final String REST_PATH = "v1/{+parent}/grpcRoutes"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Updates the parameters of a single GrpcRoute. + * Creates a new GrpcRoute in a given project and location. * - * Create a request for the method "grpcRoutes.patch". + * Create a request for the method "grpcRoutes.create". * * This request holds the parameters needed by the the networkservices server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. *

{@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 { - - private static final String REST_PATH = "v1/{+parent}/httpRoutes"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * 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 the networkservices server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - *

{@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 * - * @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`. * @since 1.13 */ protected Delete(java.lang.String name) { @@ -7888,7 +7876,7 @@ protected Delete(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/[^/]+$"); } } @@ -7948,27 +7936,27 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. A name of the HttpRoute to delete. Must be in the format - * `projects/locations/httpRoutes`. + * Required. A name of the GrpcRoute to delete. 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 delete. Must be in the format `projects/locations/httpRoutes`. + /** Required. A name of the GrpcRoute to delete. Must be in the format `projects/locations/grpcRoutes`. */ public java.lang.String getName() { return name; } /** - * Required. A name of the HttpRoute to delete. Must be in the format - * `projects/locations/httpRoutes`. + * Required. A name of the GrpcRoute to delete. Must be in the format + * `projects/locations/grpcRoutes`. */ 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/[^/]+/httpRoutes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/grpcRoutes/[^/]+$"); } this.name = name; return this; @@ -7980,14 +7968,14 @@ public Delete set(String parameterName, Object value) { } } /** - * Gets details of a single HttpRoute. + * Gets details of a single GrpcRoute. * - * Create a request for the method "httpRoutes.get". + * 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 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`. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -7996,33 +7984,33 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends NetworkServicesRequest { + public class Get extends NetworkServicesRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/httpRoutes/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/grpcRoutes/[^/]+$"); /** - * Gets details of a single HttpRoute. + * Gets details of a single GrpcRoute. * - * Create a request for the method "httpRoutes.get". + * Create a request for the method "grpcRoutes.get". * * This request holds the parameters needed by the the networkservices server. After setting any * 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 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 { + public class List extends NetworkServicesRequest { - private static final String REST_PATH = "v1/{+parent}/httpRoutes"; + private static final String REST_PATH = "v1/{+parent}/grpcRoutes"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 the networkservices server. After setting any * 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 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 NetworkServicesRequest * - * @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} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.networkservices.v1.model.HttpRoute content) { + 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."); 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/[^/]+$"); } } @@ -8460,35 +8430,34 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Identifier. Name of the HttpRoute resource. It matches pattern - * `projects/locations/httpRoutes/http_route_name>`. + * 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 HttpRoute resource. It matches pattern - `projects/locations/httpRoutes/http_route_name>`. + /** Identifier. Name of the GrpcRoute resource. It matches pattern `projects/locations/grpcRoutes/` */ public java.lang.String getName() { return name; } /** - * Identifier. Name of the HttpRoute resource. It matches pattern - * `projects/locations/httpRoutes/http_route_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/[^/]+/httpRoutes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/grpcRoutes/[^/]+$"); } this.name = name; return this; } /** - * Optional. Field mask is used to specify the fields to be overwritten in the HttpRoute + * 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. @@ -8496,7 +8465,7 @@ public Patch setName(java.lang.String name) { @com.google.api.client.util.Key private String updateMask; - /** Optional. Field mask is used to specify the fields to be overwritten in the HttpRoute resource by + /** 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. @@ -8506,7 +8475,7 @@ public String getUpdateMask() { } /** - * Optional. Field mask is used to specify the fields to be overwritten in the HttpRoute + * 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. @@ -8524,39 +8493,38 @@ public Patch set(String parameterName, Object value) { } /** - * An accessor for creating requests from the LbEdgeExtensions collection. + * An accessor for creating requests from the HttpRoutes collection. * *

The 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 { - private static final String REST_PATH = "v1/{+parent}/lbEdgeExtensions"; + private static final String REST_PATH = "v1/{+parent}/httpRoutes"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 the networkservices server. After setting any * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. @@ -8580,12 +8548,11 @@ public class Create extends NetworkServicesRequest * - * @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} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.networkservices.v1.model.LbEdgeExtension content) { + 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()) { @@ -8651,22 +8618,21 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent resource of the `LbEdgeExtension` resource. Must be in the format - * `projects/{project}/locations/{location}`. + * Required. The parent resource of the HttpRoute. Must be in the format + * `projects/locations`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent resource of the `LbEdgeExtension` resource. Must be in the format - `projects/{project}/locations/{location}`. + /** Required. The parent resource of the HttpRoute. Must be in the format `projects/locations`. */ public java.lang.String getParent() { return parent; } /** - * Required. The parent resource of the `LbEdgeExtension` resource. Must be in the format - * `projects/{project}/locations/{location}`. + * Required. The parent resource of the HttpRoute. Must be in the format + * `projects/locations`. */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -8678,57 +8644,33 @@ public Create setParent(java.lang.String parent) { return this; } - /** Required. User-provided ID of the `LbEdgeExtension` resource to be created. */ + /** Required. Short name of the HttpRoute resource to be created. */ @com.google.api.client.util.Key - private java.lang.String lbEdgeExtensionId; + private java.lang.String httpRouteId; - /** Required. User-provided ID of the `LbEdgeExtension` resource to be created. + /** Required. Short name of the HttpRoute resource to be created. */ - public java.lang.String getLbEdgeExtensionId() { - return lbEdgeExtensionId; + public java.lang.String getHttpRouteId() { + return httpRouteId; } - /** Required. User-provided ID of the `LbEdgeExtension` resource to be created. */ - public Create setLbEdgeExtensionId(java.lang.String lbEdgeExtensionId) { - this.lbEdgeExtensionId = lbEdgeExtensionId; + /** Required. Short name of the HttpRoute resource to be created. */ + public Create setHttpRouteId(java.lang.String httpRouteId) { + this.httpRouteId = httpRouteId; 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 can ignore the request if it has - * already been completed. The server guarantees that for 60 minutes since 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 - * ignores 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). - */ + /** Optional. Idempotent request UUID. */ @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 can ignore the request if it has already been completed. The - server guarantees that for 60 minutes since 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 ignores 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). + /** Optional. Idempotent request UUID. */ 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 can ignore the request if it has - * already been completed. The server guarantees that for 60 minutes since 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 - * ignores 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). - */ + /** Optional. Idempotent request UUID. */ public Create setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; @@ -8740,15 +8682,14 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes the specified `LbEdgeExtension` resource. + * Deletes a single HttpRoute. * - * Create a request for the method "lbEdgeExtensions.delete". + * Create a request for the method "httpRoutes.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 name of the `LbEdgeExtension` resource to delete. Must be in the format - * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. + * @param name Required. A name of the HttpRoute to delete. Must be in the format `projects/locations/httpRoutes`. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -8762,12 +8703,12 @@ public class Delete extends NetworkServicesRequest * - * @param name Required. The name of the `LbEdgeExtension` resource to delete. Must be in the format - * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. + * @param name Required. A name of the HttpRoute to delete. Must be in the format `projects/locations/httpRoutes`. * @since 1.13 */ protected Delete(java.lang.String name) { @@ -8785,7 +8725,7 @@ protected Delete(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/[^/]+$"); } } @@ -8845,88 +8785,46 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The name of the `LbEdgeExtension` resource to delete. Must be in the format - * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. + * Required. A name of the HttpRoute to delete. Must be in the format + * `projects/locations/httpRoutes`. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the `LbEdgeExtension` resource to delete. Must be in the format - `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. + /** Required. A name of the HttpRoute to delete. Must be in the format `projects/locations/httpRoutes`. */ public java.lang.String getName() { return name; } /** - * Required. The name of the `LbEdgeExtension` resource to delete. Must be in the format - * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. + * Required. A name of the HttpRoute to delete. Must be in the format + * `projects/locations/httpRoutes`. */ 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/[^/]+/lbEdgeExtensions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/httpRoutes/[^/]+$"); } 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 can ignore the request if it has - * already been completed. The server guarantees that for 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 - * ignores 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 can ignore the request if it has already been completed. The - server guarantees that for 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 ignores 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 can ignore the request if it has - * already been completed. The server guarantees that for 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 - * ignores 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 the specified `LbEdgeExtension` resource. + * Gets details of a single HttpRoute. * - * Create a request for the method "lbEdgeExtensions.get". + * Create a request for the method "httpRoutes.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 `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`. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -8935,34 +8833,33 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends NetworkServicesRequest { + public class Get extends NetworkServicesRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/lbEdgeExtensions/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/httpRoutes/[^/]+$"); /** - * Gets details of the specified `LbEdgeExtension` resource. + * Gets details of a single HttpRoute. * - * Create a request for the method "lbEdgeExtensions.get". + * Create a request for the method "httpRoutes.get". * * This request holds the parameters needed by the the networkservices server. After setting any * 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 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 { + public class List extends NetworkServicesRequest { - private static final String REST_PATH = "v1/{+parent}/lbEdgeExtensions"; + private static final String REST_PATH = "v1/{+parent}/httpRoutes"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 the networkservices server. After setting any * 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 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 NetworkServicesRequest * - * @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} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.networkservices.v1.model.LbEdgeExtension content) { + protected Patch(java.lang.String name, com.google.api.services.networkservices.v1.model.HttpRoute 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/[^/]+/lbEdgeExtensions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/httpRoutes/[^/]+$"); } } @@ -9392,96 +9297,56 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. Identifier. Name of the `LbEdgeExtension` resource in the following format: - * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. + * Identifier. Name of the HttpRoute resource. It matches pattern + * `projects/locations/httpRoutes/http_route_name>`. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. Identifier. Name of the `LbEdgeExtension` resource in the following format: - `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. + /** Identifier. Name of the HttpRoute resource. It matches pattern + `projects/locations/httpRoutes/http_route_name>`. */ public java.lang.String getName() { return name; } /** - * Required. Identifier. Name of the `LbEdgeExtension` resource in the following format: - * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. + * Identifier. Name of the HttpRoute resource. It matches pattern + * `projects/locations/httpRoutes/http_route_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/[^/]+/lbEdgeExtensions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/httpRoutes/[^/]+$"); } 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 can ignore the request if it has - * already been completed. The server guarantees that for 60 minutes since 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 - * ignores 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). + * Optional. Field mask is used to specify the fields to be overwritten in the HttpRoute + * 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 java.lang.String requestId; + private String updateMask; - /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you - must retry your request, the server can ignore the request if it has already been completed. The - server guarantees that for 60 minutes since 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 ignores 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). + /** Optional. Field mask is used to specify the fields to be overwritten in the HttpRoute 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 java.lang.String getRequestId() { - return requestId; + public String getUpdateMask() { + return updateMask; } /** - * Optional. An optional request ID to identify requests. Specify a unique request ID so - * that if you must retry your request, the server can ignore the request if it has - * already been completed. The server guarantees that for 60 minutes since 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 - * ignores 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. Used to specify the fields to be overwritten in the `LbEdgeExtension` - * resource by the update. The fields specified in the `update_mask` are relative to the - * resource, not the full request. A field is overwritten if it is in the mask. If the - * user does not specify a mask, then all fields are overwritten. - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Optional. Used to specify the fields to be overwritten in the `LbEdgeExtension` resource by the - update. The fields specified in the `update_mask` are relative to the resource, not the full - request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all - fields are overwritten. - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Optional. Used to specify the fields to be overwritten in the `LbEdgeExtension` - * resource by the update. The fields specified in the `update_mask` are relative to the - * resource, not the full request. A field is overwritten if it is in the mask. If the - * user does not specify a mask, then all fields are overwritten. + * Optional. Field mask is used to specify the fields to be overwritten in the HttpRoute + * 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; @@ -9496,39 +9361,39 @@ public Patch set(String parameterName, Object value) { } /** - * An accessor for creating requests from the LbRouteExtensions collection. + * An accessor for creating requests from the LbEdgeExtensions collection. * *

The 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 { - private static final String REST_PATH = "v1/{+parent}/lbRouteExtensions"; + private static final String REST_PATH = "v1/{+parent}/lbEdgeExtensions"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 the networkservices server. After setting any * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. @@ -9552,12 +9417,12 @@ public class Create extends NetworkServicesRequest * - * @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} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.networkservices.v1.model.LbRouteExtension content) { + protected Create(java.lang.String parent, com.google.api.services.networkservices.v1.model.LbEdgeExtension 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()) { @@ -9623,13 +9488,13 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent resource of the `LbRouteExtension` resource. Must be in the format + * Required. The parent resource of the `LbEdgeExtension` resource. Must be in the format * `projects/{project}/locations/{location}`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent resource of the `LbRouteExtension` resource. Must be in the format + /** Required. The parent resource of the `LbEdgeExtension` resource. Must be in the format `projects/{project}/locations/{location}`. */ public java.lang.String getParent() { @@ -9637,7 +9502,7 @@ public java.lang.String getParent() { } /** - * Required. The parent resource of the `LbRouteExtension` resource. Must be in the format + * Required. The parent resource of the `LbEdgeExtension` resource. Must be in the format * `projects/{project}/locations/{location}`. */ public Create setParent(java.lang.String parent) { @@ -9650,19 +9515,19 @@ public Create setParent(java.lang.String parent) { return this; } - /** Required. User-provided ID of the `LbRouteExtension` resource to be created. */ + /** Required. User-provided ID of the `LbEdgeExtension` resource to be created. */ @com.google.api.client.util.Key - private java.lang.String lbRouteExtensionId; + private java.lang.String lbEdgeExtensionId; - /** Required. User-provided ID of the `LbRouteExtension` resource to be created. + /** Required. User-provided ID of the `LbEdgeExtension` resource to be created. */ - public java.lang.String getLbRouteExtensionId() { - return lbRouteExtensionId; + public java.lang.String getLbEdgeExtensionId() { + return lbEdgeExtensionId; } - /** Required. User-provided ID of the `LbRouteExtension` resource to be created. */ - public Create setLbRouteExtensionId(java.lang.String lbRouteExtensionId) { - this.lbRouteExtensionId = lbRouteExtensionId; + /** Required. User-provided ID of the `LbEdgeExtension` resource to be created. */ + public Create setLbEdgeExtensionId(java.lang.String lbEdgeExtensionId) { + this.lbEdgeExtensionId = lbEdgeExtensionId; return this; } @@ -9712,15 +9577,15 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes the specified `LbRouteExtension` resource. + * Deletes the specified `LbEdgeExtension` resource. * - * Create a request for the method "lbRouteExtensions.delete". + * Create a request for the method "lbEdgeExtensions.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 name of the `LbRouteExtension` resource to delete. Must be in the format - * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. + * @param name Required. The name of the `LbEdgeExtension` resource to delete. Must be in the format + * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -9734,12 +9599,12 @@ public class Delete extends NetworkServicesRequest * - * @param name Required. The name of the `LbRouteExtension` resource to delete. Must be in the format - * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. + * @param name Required. The name of the `LbEdgeExtension` resource to delete. Must be in the format + * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. * @since 1.13 */ protected Delete(java.lang.String name) { @@ -9757,7 +9622,7 @@ protected Delete(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/[^/]+$"); } } @@ -9817,28 +9682,28 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The name of the `LbRouteExtension` resource to delete. Must be in the format - * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. + * Required. The name of the `LbEdgeExtension` resource to delete. 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. The name of the `LbRouteExtension` resource to delete. Must be in the format - `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. + /** Required. The name of the `LbEdgeExtension` resource to delete. Must be in the format + `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. */ public java.lang.String getName() { return name; } /** - * Required. The name of the `LbRouteExtension` resource to delete. Must be in the format - * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. + * Required. The name of the `LbEdgeExtension` resource to delete. Must be in the format + * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. */ 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/[^/]+/lbRouteExtensions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/lbEdgeExtensions/[^/]+$"); } this.name = name; return this; @@ -9890,15 +9755,15 @@ public Delete set(String parameterName, Object value) { } } /** - * Gets details of the specified `LbRouteExtension` resource. + * Gets details of the specified `LbEdgeExtension` resource. * - * Create a request for the method "lbRouteExtensions.get". + * Create a request for the method "lbEdgeExtensions.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 `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}`. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -9907,34 +9772,34 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends NetworkServicesRequest { + public class Get extends NetworkServicesRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/lbRouteExtensions/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/lbEdgeExtensions/[^/]+$"); /** - * Gets details of the specified `LbRouteExtension` resource. + * Gets details of the specified `LbEdgeExtension` resource. * - * Create a request for the method "lbRouteExtensions.get". + * Create a request for the method "lbEdgeExtensions.get". * * This request holds the parameters needed by the the networkservices server. After setting any * 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 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 { + public class List extends NetworkServicesRequest { - private static final String REST_PATH = "v1/{+parent}/lbRouteExtensions"; + private static final String REST_PATH = "v1/{+parent}/lbEdgeExtensions"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 the networkservices server. After setting any * 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 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 NetworkServicesRequest * - * @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} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.networkservices.v1.model.LbRouteExtension content) { + protected Patch(java.lang.String name, com.google.api.services.networkservices.v1.model.LbEdgeExtension 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/[^/]+/lbRouteExtensions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/lbEdgeExtensions/[^/]+$"); } } @@ -10364,28 +10229,28 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. Identifier. Name of the `LbRouteExtension` resource in the following format: - * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. + * Required. Identifier. Name of the `LbEdgeExtension` resource in the following format: + * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. Identifier. Name of the `LbRouteExtension` resource in the following format: - `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. + /** Required. Identifier. Name of the `LbEdgeExtension` resource in the following format: + `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. */ public java.lang.String getName() { return name; } /** - * Required. Identifier. Name of the `LbRouteExtension` resource in the following format: - * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. + * Required. Identifier. Name of the `LbEdgeExtension` resource in the following format: + * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. */ 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/[^/]+/lbRouteExtensions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/lbEdgeExtensions/[^/]+$"); } this.name = name; return this; @@ -10432,7 +10297,7 @@ public Patch setRequestId(java.lang.String requestId) { } /** - * Optional. Used to specify the fields to be overwritten in the `LbRouteExtension` + * Optional. Used to specify the fields to be overwritten in the `LbEdgeExtension` * resource by the update. The fields specified in the `update_mask` are relative to the * resource, not the full request. A field is overwritten if it is in the mask. If the * user does not specify a mask, then all fields are overwritten. @@ -10440,7 +10305,7 @@ public Patch setRequestId(java.lang.String requestId) { @com.google.api.client.util.Key private String updateMask; - /** Optional. Used to specify the fields to be overwritten in the `LbRouteExtension` resource by the + /** Optional. Used to specify the fields to be overwritten in the `LbEdgeExtension` resource by the update. The fields specified in the `update_mask` are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten. @@ -10450,7 +10315,7 @@ public String getUpdateMask() { } /** - * Optional. Used to specify the fields to be overwritten in the `LbRouteExtension` + * Optional. Used to specify the fields to be overwritten in the `LbEdgeExtension` * resource by the update. The fields specified in the `update_mask` are relative to the * resource, not the full request. A field is overwritten if it is in the mask. If the * user does not specify a mask, then all fields are overwritten. @@ -10468,39 +10333,39 @@ public Patch set(String parameterName, Object value) { } /** - * An accessor for creating requests from the LbTrafficExtensions collection. + * An accessor for creating requests from the LbRouteExtensions collection. * *

The 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 { - private static final String REST_PATH = "v1/{+parent}/lbTrafficExtensions"; + private static final String REST_PATH = "v1/{+parent}/lbRouteExtensions"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 the networkservices server. After setting any * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. @@ -10524,12 +10389,12 @@ public class Create extends NetworkServicesRequest * - * @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} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.networkservices.v1.model.LbTrafficExtension content) { + protected Create(java.lang.String parent, com.google.api.services.networkservices.v1.model.LbRouteExtension 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()) { @@ -10595,13 +10460,13 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent resource of the `LbTrafficExtension` resource. Must be in the - * format `projects/{project}/locations/{location}`. + * Required. The parent resource of the `LbRouteExtension` resource. Must be in the format + * `projects/{project}/locations/{location}`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent resource of the `LbTrafficExtension` resource. Must be in the format + /** Required. The parent resource of the `LbRouteExtension` resource. Must be in the format `projects/{project}/locations/{location}`. */ public java.lang.String getParent() { @@ -10609,8 +10474,8 @@ public java.lang.String getParent() { } /** - * Required. The parent resource of the `LbTrafficExtension` resource. Must be in the - * format `projects/{project}/locations/{location}`. + * Required. The parent resource of the `LbRouteExtension` resource. Must be in the format + * `projects/{project}/locations/{location}`. */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -10622,19 +10487,19 @@ public Create setParent(java.lang.String parent) { return this; } - /** Required. User-provided ID of the `LbTrafficExtension` resource to be created. */ + /** Required. User-provided ID of the `LbRouteExtension` resource to be created. */ @com.google.api.client.util.Key - private java.lang.String lbTrafficExtensionId; + private java.lang.String lbRouteExtensionId; - /** Required. User-provided ID of the `LbTrafficExtension` resource to be created. + /** Required. User-provided ID of the `LbRouteExtension` resource to be created. */ - public java.lang.String getLbTrafficExtensionId() { - return lbTrafficExtensionId; + public java.lang.String getLbRouteExtensionId() { + return lbRouteExtensionId; } - /** Required. User-provided ID of the `LbTrafficExtension` resource to be created. */ - public Create setLbTrafficExtensionId(java.lang.String lbTrafficExtensionId) { - this.lbTrafficExtensionId = lbTrafficExtensionId; + /** Required. User-provided ID of the `LbRouteExtension` resource to be created. */ + public Create setLbRouteExtensionId(java.lang.String lbRouteExtensionId) { + this.lbRouteExtensionId = lbRouteExtensionId; return this; } @@ -10684,15 +10549,15 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes the specified `LbTrafficExtension` resource. + * Deletes the specified `LbRouteExtension` resource. * - * Create a request for the method "lbTrafficExtensions.delete". + * Create a request for the method "lbRouteExtensions.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 name of the `LbTrafficExtension` resource to delete. Must be in the format - * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. + * @param name Required. The name of the `LbRouteExtension` resource to delete. Must be in the format + * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -10706,12 +10571,12 @@ public class Delete extends NetworkServicesRequest * - * @param name Required. The name of the `LbTrafficExtension` resource to delete. Must be in the format - * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. + * @param name Required. The name of the `LbRouteExtension` resource to delete. Must be in the format + * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. * @since 1.13 */ protected Delete(java.lang.String name) { @@ -10729,7 +10594,7 @@ protected Delete(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/[^/]+$"); } } @@ -10789,30 +10654,28 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The name of the `LbTrafficExtension` resource to delete. Must be in the - * format - * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. + * Required. The name of the `LbRouteExtension` resource to delete. 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. The name of the `LbTrafficExtension` resource to delete. Must be in the format - `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. + /** Required. The name of the `LbRouteExtension` resource to delete. Must be in the format + `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. */ public java.lang.String getName() { return name; } /** - * Required. The name of the `LbTrafficExtension` resource to delete. Must be in the - * format - * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. + * Required. The name of the `LbRouteExtension` resource to delete. Must be in the format + * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. */ 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/[^/]+/lbTrafficExtensions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/lbRouteExtensions/[^/]+$"); } this.name = name; return this; @@ -10864,15 +10727,15 @@ public Delete set(String parameterName, Object value) { } } /** - * Gets details of the specified `LbTrafficExtension` resource. + * Gets details of the specified `LbRouteExtension` resource. * - * Create a request for the method "lbTrafficExtensions.get". + * Create a request for the method "lbRouteExtensions.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 `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}`. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -10881,34 +10744,34 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends NetworkServicesRequest { + public class Get extends NetworkServicesRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/lbTrafficExtensions/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/lbRouteExtensions/[^/]+$"); /** - * Gets details of the specified `LbTrafficExtension` resource. + * Gets details of the specified `LbRouteExtension` resource. * - * Create a request for the method "lbTrafficExtensions.get". + * Create a request for the method "lbRouteExtensions.get". * * This request holds the parameters needed by the the networkservices server. After setting any * 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 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 { + public class List extends NetworkServicesRequest { - private static final String REST_PATH = "v1/{+parent}/lbTrafficExtensions"; + private static final String REST_PATH = "v1/{+parent}/lbRouteExtensions"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 the networkservices server. After setting any * 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 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 NetworkServicesRequest * - * @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} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.networkservices.v1.model.LbTrafficExtension content) { + protected Patch(java.lang.String name, com.google.api.services.networkservices.v1.model.LbRouteExtension 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/[^/]+/lbTrafficExtensions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/lbRouteExtensions/[^/]+$"); } } @@ -11338,30 +11201,28 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. Identifier. Name of the `LbTrafficExtension` resource in the following - * format: - * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. + * Required. Identifier. Name of the `LbRouteExtension` resource in the following format: + * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. Identifier. Name of the `LbTrafficExtension` resource in the following format: - `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. + /** Required. Identifier. Name of the `LbRouteExtension` resource in the following format: + `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. */ public java.lang.String getName() { return name; } /** - * Required. Identifier. Name of the `LbTrafficExtension` resource in the following - * format: - * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. + * Required. Identifier. Name of the `LbRouteExtension` resource in the following format: + * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. */ 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/[^/]+/lbTrafficExtensions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/lbRouteExtensions/[^/]+$"); } this.name = name; return this; @@ -11408,7 +11269,7 @@ public Patch setRequestId(java.lang.String requestId) { } /** - * Optional. Used to specify the fields to be overwritten in the `LbTrafficExtension` + * Optional. Used to specify the fields to be overwritten in the `LbRouteExtension` * resource by the update. The fields specified in the `update_mask` are relative to the * resource, not the full request. A field is overwritten if it is in the mask. If the * user does not specify a mask, then all fields are overwritten. @@ -11416,7 +11277,7 @@ public Patch setRequestId(java.lang.String requestId) { @com.google.api.client.util.Key private String updateMask; - /** Optional. Used to specify the fields to be overwritten in the `LbTrafficExtension` resource by the + /** Optional. Used to specify the fields to be overwritten in the `LbRouteExtension` resource by the update. The fields specified in the `update_mask` are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten. @@ -11426,7 +11287,7 @@ public String getUpdateMask() { } /** - * Optional. Used to specify the fields to be overwritten in the `LbTrafficExtension` + * Optional. Used to specify the fields to be overwritten in the `LbRouteExtension` * resource by the update. The fields specified in the `update_mask` are relative to the * resource, not the full request. A field is overwritten if it is in the mask. If the * user does not specify a mask, then all fields are overwritten. @@ -11444,38 +11305,39 @@ public Patch set(String parameterName, Object value) { } /** - * An accessor for creating requests from the Meshes collection. + * An accessor for creating requests from the LbTrafficExtensions collection. * *

The 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 { - private static final String REST_PATH = "v1/{+parent}/meshes"; + private static final String REST_PATH = "v1/{+parent}/lbTrafficExtensions"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 the networkservices server. After setting any * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. @@ -11499,11 +11361,12 @@ public class Create extends NetworkServicesRequest * - * @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} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.networkservices.v1.model.Mesh content) { + protected Create(java.lang.String parent, com.google.api.services.networkservices.v1.model.LbTrafficExtension 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()) { @@ -11569,19 +11432,22 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent resource of the Mesh. Must be in the format `projects/locations`. + * Required. The parent resource of the `LbTrafficExtension` resource. Must be in the + * format `projects/{project}/locations/{location}`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent resource of the Mesh. Must be in the format `projects/locations`. + /** Required. The parent resource of the `LbTrafficExtension` resource. Must be in the format + `projects/{project}/locations/{location}`. */ public java.lang.String getParent() { return parent; } /** - * Required. The parent resource of the Mesh. Must be in the format `projects/locations`. + * Required. The parent resource of the `LbTrafficExtension` resource. Must be in the + * format `projects/{project}/locations/{location}`. */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -11593,36 +11459,77 @@ public Create setParent(java.lang.String parent) { return this; } - /** Required. Short name of the Mesh resource to be created. */ + /** Required. User-provided ID of the `LbTrafficExtension` resource to be created. */ @com.google.api.client.util.Key - private java.lang.String meshId; + private java.lang.String lbTrafficExtensionId; - /** Required. Short name of the Mesh resource to be created. + /** Required. User-provided ID of the `LbTrafficExtension` resource to be created. */ - public java.lang.String getMeshId() { - return meshId; + public java.lang.String getLbTrafficExtensionId() { + return lbTrafficExtensionId; } - /** Required. Short name of the Mesh resource to be created. */ - public Create setMeshId(java.lang.String meshId) { - this.meshId = meshId; + /** Required. User-provided ID of the `LbTrafficExtension` resource to be created. */ + public Create setLbTrafficExtensionId(java.lang.String lbTrafficExtensionId) { + this.lbTrafficExtensionId = lbTrafficExtensionId; return this; } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a single Mesh. + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server can ignore the request if it has + * already been completed. The server guarantees that for 60 minutes since 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 + * ignores 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 can ignore the request if it has already been completed. The + server guarantees that for 60 minutes since 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 ignores 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 can ignore the request if it has + * already been completed. The server guarantees that for 60 minutes since 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 + * ignores 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 the specified `LbTrafficExtension` resource. * - * Create a request for the method "meshes.delete". + * Create a request for the method "lbTrafficExtensions.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`. + * @param name Required. The name of the `LbTrafficExtension` resource to delete. Must be in the format + * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -11636,12 +11543,12 @@ public class Delete extends NetworkServicesRequest * - * @param name Required. A name of the Mesh to delete. Must be in the format `projects/locations/meshes`. + * @param name Required. The name of the `LbTrafficExtension` resource to delete. Must be in the format + * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. * @since 1.13 */ protected Delete(java.lang.String name) { @@ -11658,7 +11566,7 @@ protected Delete(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/[^/]+$"); } } @@ -11718,46 +11626,90 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. A name of the Mesh to delete. Must be in the format - * `projects/locations/meshes`. + * Required. The name of the `LbTrafficExtension` resource to delete. 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 delete. Must be in the format `projects/locations/meshes`. + /** Required. The name of the `LbTrafficExtension` resource to delete. 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 delete. Must be in the format - * `projects/locations/meshes`. + * Required. The name of the `LbTrafficExtension` resource to delete. Must be in the + * format + * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. */ 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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/lbTrafficExtensions/[^/]+$"); } 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 can ignore the request if it has + * already been completed. The server guarantees that for 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 + * ignores 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 can ignore the request if it has already been completed. The + server guarantees that for 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 ignores 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 can ignore the request if it has + * already been completed. The server guarantees that for 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 + * ignores 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 Mesh. + * Gets details of the specified `LbTrafficExtension` resource. * - * Create a request for the method "meshes.get". + * Create a request for the method "lbTrafficExtensions.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`. + * @param name Required. A name of the `LbTrafficExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -11766,33 +11718,34 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends NetworkServicesRequest { + public class Get extends NetworkServicesRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/meshes/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/lbTrafficExtensions/[^/]+$"); /** - * Gets details of a single Mesh. + * Gets details of the specified `LbTrafficExtension` resource. * - * Create a request for the method "meshes.get". + * Create a request for the method "lbTrafficExtensions.get". * * This request holds the parameters needed by the the networkservices server. After setting any * 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 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 { + public class List extends NetworkServicesRequest { - private static final String REST_PATH = "v1/{+parent}/meshes"; + private static final String REST_PATH = "v1/{+parent}/lbTrafficExtensions"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 the networkservices server. After setting any * 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 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 NetworkServicesRequest * - * @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} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.networkservices.v1.model.Mesh content) { + protected Patch(java.lang.String name, com.google.api.services.networkservices.v1.model.LbTrafficExtension 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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/lbTrafficExtensions/[^/]+$"); } } @@ -12210,53 +12175,98 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Identifier. Name of the Mesh resource. It matches pattern `projects/locations/meshes/`. + * Required. Identifier. Name of the `LbTrafficExtension` resource in the following + * format: + * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. */ @com.google.api.client.util.Key private java.lang.String name; - /** Identifier. Name of the Mesh resource. It matches pattern `projects/locations/meshes/`. + /** Required. Identifier. Name of the `LbTrafficExtension` resource in the following format: + `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. */ public java.lang.String getName() { return name; } /** - * Identifier. Name of the Mesh resource. It matches pattern `projects/locations/meshes/`. + * Required. Identifier. Name of the `LbTrafficExtension` resource in the following + * format: + * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. */ 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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/lbTrafficExtensions/[^/]+$"); } 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. + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server can ignore the request if it has + * already been completed. The server guarantees that for 60 minutes since 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 + * ignores 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 can ignore the request if it has already been completed. The + server guarantees that for 60 minutes since 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 ignores 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 can ignore the request if it has + * already been completed. The server guarantees that for 60 minutes since 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 + * ignores 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. Used to specify the fields to be overwritten in the `LbTrafficExtension` + * resource by the update. The fields specified in the `update_mask` are relative to the + * resource, not the full request. A field is overwritten if it is in the mask. If the + * user does not specify a mask, then all fields are 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. + /** Optional. Used to specify the fields to be overwritten in the `LbTrafficExtension` resource by the + update. The fields specified in the `update_mask` are relative to the resource, not the full + request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all + fields are 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. + * Optional. Used to specify the fields to be overwritten in the `LbTrafficExtension` + * resource by the update. The fields specified in the `update_mask` are relative to the + * resource, not the full request. A field is overwritten if it is in the mask. If the + * user does not specify a mask, then all fields are overwritten. */ public Patch setUpdateMask(String updateMask) { this.updateMask = updateMask; @@ -12269,398 +12279,2235 @@ public Patch set(String parameterName, Object value) { } } + } + /** + * An accessor for creating requests from the Meshes collection. + * + *

The 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 { + + private static final String REST_PATH = "v1/{+parent}/meshes"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Get a single RouteView of a Mesh. + * Creates a new Mesh in a given project and location. * - * Create a request for the method "routeViews.get". + * Create a request for the method "meshes.create". * - * 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. + * This request holds the parameters needed by the the networkservices server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

{@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 { + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1/{+name}"; + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/meshes/[^/]+/routeViews/[^/]+$"); + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - /** - * Get a single RouteView of a Mesh. - * - * Create a request for the method "routeViews.get". - * - * This request holds the parameters needed by the the networkservices server. After setting any - * 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 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 { - /** - * 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; - } + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/meshes/[^/]+$"); - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } /** - * Lists RouteViews + * Deletes a single Mesh. * - * Create a request for the method "routeViews.list". + * 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 List#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the networkservices server. After setting any + * 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 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 { + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1/{+parent}/routeViews"; + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/meshes/[^/]+$"); + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - /** - * Lists RouteViews - * - * Create a request for the method "routeViews.list". - * - * This request holds the parameters needed by the the networkservices server. After setting any - * 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 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 { - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + private static final String REST_PATH = "v1/{+name}"; - /** - * 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; + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/meshes/[^/]+$"); - /** Required. The Mesh to which a Route is associated. Format: - projects/{project_number}/locations/{location}/meshes/{mesh} - */ - public java.lang.String getParent() { - return parent; + /** + * Gets details of a single Mesh. + * + * Create a request for the method "meshes.get". + * + * This request holds the parameters needed by the the networkservices server. After setting any + * 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 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 { + + private static final String REST_PATH = "v1/{+parent}/meshes"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists Meshes in a given project and location. + * + * Create a request for the method "meshes.list". + * + * This request holds the parameters needed by the the networkservices server. After setting any + * 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 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 { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/meshes/[^/]+$"); + + /** + * Updates the parameters of a single Mesh. + * + * Create a request for the method "meshes.patch". + * + * This request holds the parameters needed by the the networkservices server. After setting any + * 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 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 { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/meshes/[^/]+/routeViews/[^/]+$"); + + /** + * Get a single RouteView of a Mesh. + * + * Create a request for the method "routeViews.get". + * + * This request holds the parameters needed by the the networkservices server. After setting any + * 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 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 { + + private static final String REST_PATH = "v1/{+parent}/routeViews"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/meshes/[^/]+$"); + + /** + * Lists RouteViews + * + * Create a request for the method "routeViews.list". + * + * This request holds the parameters needed by the the networkservices server. After setting any + * 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 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 { + + private static final String REST_PATH = "v1/{+parent}/multicastConsumerAssociations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * 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 the networkservices server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

{@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 { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/multicastConsumerAssociations/[^/]+$"); + + /** + * Deletes a single multicast consumer association. + * + * Create a request for the method "multicastConsumerAssociations.delete". + * + * This request holds the parameters needed by the the networkservices server. After setting any + * 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 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 { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/multicastConsumerAssociations/[^/]+$"); + + /** + * Gets details of a single multicast consumer association. + * + * Create a request for the method "multicastConsumerAssociations.get". + * + * This request holds the parameters needed by the the networkservices server. After setting any + * 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 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 { + + private static final String REST_PATH = "v1/{+parent}/multicastConsumerAssociations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * 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 the networkservices server. After setting any + * 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 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 { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/multicastConsumerAssociations/[^/]+$"); + + /** + * 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 the networkservices server. After setting any + * 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 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 { - private static final String REST_PATH = "v1/{+parent}/multicastConsumerAssociations"; + private static final String REST_PATH = "v1/{+parent}/multicastGroupConsumerActivations"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 the networkservices server. After setting any * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. @@ -12684,12 +14531,12 @@ public class Create extends NetworkServicesRequest * - * @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} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.networkservices.v1.model.MulticastConsumerAssociation content) { + 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()) { @@ -12755,13 +14602,13 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent resource of the multicast consumer association. Use the following - * format: `projects/locations`. + * 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 consumer association. Use the following format: + /** Required. The parent resource of the multicast group consumer activation. Use the following format: `projects/locations`. */ public java.lang.String getParent() { @@ -12769,8 +14616,8 @@ public java.lang.String getParent() { } /** - * Required. The parent resource of the multicast consumer association. Use the following - * format: `projects/locations`. + * 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()) { @@ -12783,28 +14630,30 @@ public Create setParent(java.lang.String parent) { } /** - * 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. + * 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 multicastConsumerAssociationId; + private java.lang.String multicastGroupConsumerActivationId; - /** 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. + /** 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 getMulticastConsumerAssociationId() { - return multicastConsumerAssociationId; + public java.lang.String getMulticastGroupConsumerActivationId() { + return multicastGroupConsumerActivationId; } /** - * 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. + * 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 setMulticastConsumerAssociationId(java.lang.String multicastConsumerAssociationId) { - this.multicastConsumerAssociationId = multicastConsumerAssociationId; + public Create setMulticastGroupConsumerActivationId(java.lang.String multicastGroupConsumerActivationId) { + this.multicastGroupConsumerActivationId = multicastGroupConsumerActivationId; return this; } @@ -12857,15 +14706,15 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes a single multicast consumer association. + * Deletes a single multicast group consumer activation. * - * Create a request for the method "multicastConsumerAssociations.delete". + * Create a request for the method "multicastGroupConsumerActivations.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`. + * @param name Required. The resource name of the multicast group consumer activation to delete. Use the following + * format: `projects/locations/multicastGroupConsumerActivations`. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -12879,12 +14728,12 @@ public class Delete extends NetworkServicesRequest * - * @param name Required. The resource name of the multicast consumer association to delete. Use the following - * format: `projects/locations/multicastConsumerAssociations`. + * @param name Required. The resource name of the multicast group consumer activation to delete. Use the following + * format: `projects/locations/multicastGroupConsumerActivations`. * @since 1.13 */ protected Delete(java.lang.String name) { @@ -12902,7 +14751,7 @@ protected Delete(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/[^/]+$"); } } @@ -12962,28 +14811,28 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the multicast consumer association to delete. Use the - * following format: `projects/locations/multicastConsumerAssociations`. + * Required. The resource name of the multicast group consumer activation to delete. 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 delete. Use the following - format: `projects/locations/multicastConsumerAssociations`. + /** Required. The resource name of the multicast group consumer activation to delete. Use the following + format: `projects/locations/multicastGroupConsumerActivations`. */ 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`. + * 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) { 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; @@ -13038,15 +14887,15 @@ public Delete set(String parameterName, Object value) { } } /** - * Gets details of a single multicast consumer association. + * Gets details of a single multicast group consumer activation. * - * Create a request for the method "multicastConsumerAssociations.get". + * Create a request for the method "multicastGroupConsumerActivations.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`. + * @param name Required. The resource name of the multicast group consumer activation to get. Use the following + * format: `projects/locations/multicastGroupConsumerActivations`. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -13055,34 +14904,34 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends NetworkServicesRequest { + public class Get extends NetworkServicesRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/multicastConsumerAssociations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/multicastGroupConsumerActivations/[^/]+$"); /** - * Gets details of a single multicast consumer association. + * Gets details of a single multicast group consumer activation. * - * Create a request for the method "multicastConsumerAssociations.get". + * Create a request for the method "multicastGroupConsumerActivations.get". * * This request holds the parameters needed by the the networkservices server. After setting any * 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 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 { + public class List extends NetworkServicesRequest { - private static final String REST_PATH = "v1/{+parent}/multicastConsumerAssociations"; + private static final String REST_PATH = "v1/{+parent}/multicastGroupConsumerActivations"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 the networkservices server. After setting any * 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 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 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} + * + * @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} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.networkservices.v1.model.MulticastConsumerAssociation content) { + 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); 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/[^/]+$"); } } @@ -13528,28 +15379,28 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Identifier. The resource name of the multicast consumer association. Use the following - * format: `projects/locations/multicastConsumerAssociations`. + * Identifier. The resource name of the multicast group consumer activation. Use the + * following format: `projects/locations/multicastGroupConsumerActivations`. */ @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`. + /** Identifier. The resource name of the multicast group consumer activation. Use the following format: + `projects/locations/multicastGroupConsumerActivations`. */ public java.lang.String getName() { return name; } /** - * Identifier. The resource name of the multicast consumer association. Use the following - * format: `projects/locations/multicastConsumerAssociations`. + * Identifier. The resource name of the multicast group consumer activation. Use the + * following format: `projects/locations/multicastGroupConsumerActivations`. */ 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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/multicastGroupConsumerActivations/[^/]+$"); } this.name = name; return this; @@ -13600,7 +15451,7 @@ public Patch setRequestId(java.lang.String requestId) { /** * Optional. Field mask is used to specify the fields to be overwritten in the - * MulticastConsumerAssociation resource by the update. The fields specified 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. @@ -13609,9 +15460,9 @@ public Patch setRequestId(java.lang.String requestId) { private String updateMask; /** 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 + 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. */ public String getUpdateMask() { @@ -13620,7 +15471,7 @@ public String getUpdateMask() { /** * Optional. Field mask is used to specify the fields to be overwritten in the - * MulticastConsumerAssociation resource by the update. The fields specified 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. @@ -13638,610 +15489,347 @@ public Patch set(String parameterName, Object value) { } /** - * An accessor for creating requests from the MulticastGroupConsumerActivations collection. + * An accessor for creating requests from the Operations collection. * *

The 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 { - - private static final String REST_PATH = "v1/{+parent}/multicastGroupConsumerActivations"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * 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 the networkservices server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - *

{@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 { + public class Cancel extends NetworkServicesRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+name}:cancel"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/multicastGroupConsumerActivations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); /** - * 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 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. *

{@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 { + public class Delete extends NetworkServicesRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/multicastGroupConsumerActivations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); /** - * 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 the networkservices server. After setting any - * 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.

+ * 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 { + public class Get extends NetworkServicesRequest { - private static final String REST_PATH = "v1/{+parent}/multicastGroupConsumerActivations"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); /** - * 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 the networkservices server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

- * {@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 { + public class List extends NetworkServicesRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+name}/operations"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/multicastGroupConsumerActivations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 the networkservices server. After setting any - * 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.

+ * 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 { + public class Create extends NetworkServicesRequest { - private static final String REST_PATH = "v1/{+name}:cancel"; + private static final String REST_PATH = "v1/{+parent}/producerExtensions"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 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. *

{@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 { + public class Delete extends NetworkServicesRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/producerExtensions/[^/]+$"); /** - * 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 the networkservices server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. @@ -14853,16 +16361,17 @@ public class Delete extends NetworkServicesRequest * - * @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}`. * @since 1.13 */ protected Delete(java.lang.String name) { - super(NetworkServices.this, "DELETE", REST_PATH, null, com.google.api.services.networkservices.v1.model.Empty.class); + 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/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/producerExtensions/[^/]+$"); } } @@ -14921,42 +16430,65 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to be deleted. */ + /** + * Required. A name of the `ProducerExtension` resource to delete. 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 to be deleted. + /** Required. A name of the `ProducerExtension` resource to delete. 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 to be deleted. */ + /** + * Required. A name of the `ProducerExtension` resource to delete. Must be in the format + * `projects/{project}/locations/{location}/producerExtensions/{producer_extension}`. + */ 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/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/producerExtensions/[^/]+$"); } this.name = name; return this; } + /** Optional. The etag of the ProducerExtension to delete. */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The etag of the ProducerExtension to delete. + */ + public java.lang.String getEtag() { + return etag; + } + + /** Optional. The etag of the ProducerExtension to delete. */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** - * 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. + * Gets details of the specified `ProducerExtension` resource. * - * Create a request for the method "operations.get". + * Create a request for the method "producerExtensions.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 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}`. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -14965,34 +16497,34 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends NetworkServicesRequest { + public class Get extends NetworkServicesRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/producerExtensions/[^/]+$"); /** - * 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. + * Gets details of the specified `ProducerExtension` resource. * - * Create a request for the method "operations.get". + * Create a request for the method "producerExtensions.get". * * This request holds the parameters needed by the the networkservices server. After setting any * 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 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 { + public class List extends NetworkServicesRequest { - private static final String REST_PATH = "v1/{+name}/operations"; + private static final String REST_PATH = "v1/{+parent}/producerExtensions"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 the networkservices server. After setting any * 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 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.List accessTypes; + /** + * Optional. The compute environment where the agent is hosted. Exactly one type of compute must + * be chosen. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentCompute; + /** * Output only. The timestamp when the resource was created. * The value may be {@code null}. @@ -53,6 +61,13 @@ public final class AgentConnectivityTemplate extends com.google.api.client.json. @com.google.api.client.util.Key private String createTime; + /** + * Required. The deployment model for the gateway. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deploymentModel; + /** * Optional. A free-text description of the resource. Max length 1024 characters. * The value may be {@code null}. @@ -137,6 +152,25 @@ public AgentConnectivityTemplate setAccessTypes(java.util.List return this; } + /** + * Optional. The compute environment where the agent is hosted. Exactly one type of compute must + * be chosen. + * @return value or {@code null} for none + */ + public java.lang.String getAgentCompute() { + return agentCompute; + } + + /** + * Optional. The compute environment where the agent is hosted. Exactly one type of compute must + * be chosen. + * @param agentCompute agentCompute or {@code null} for none + */ + public AgentConnectivityTemplate setAgentCompute(java.lang.String agentCompute) { + this.agentCompute = agentCompute; + return this; + } + /** * Output only. The timestamp when the resource was created. * @return value or {@code null} for none @@ -154,6 +188,23 @@ public AgentConnectivityTemplate setCreateTime(String createTime) { return this; } + /** + * Required. The deployment model for the gateway. + * @return value or {@code null} for none + */ + public java.lang.String getDeploymentModel() { + return deploymentModel; + } + + /** + * Required. The deployment model for the gateway. + * @param deploymentModel deploymentModel or {@code null} for none + */ + public AgentConnectivityTemplate setDeploymentModel(java.lang.String deploymentModel) { + this.deploymentModel = deploymentModel; + return this; + } + /** * Optional. A free-text description of the resource. Max length 1024 characters. * @return value or {@code null} for none diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBinding.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBinding.java new file mode 100644 index 00000000000..97f43441254 --- /dev/null +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBinding.java @@ -0,0 +1,372 @@ +/* + * 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; + +/** + * `ExtensionBinding` is a resource representing the attachment of an extension to a service. + * + *

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 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.Map labels; + + /** + * Optional. A list of match conditions to match against the incoming request. The extension will + * be invoked if at least one condition matches the request, or if no match conditions are + * specified. Limited to 5 conditions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List matchConditions; + + /** + * Identifier. Name of the `ExtensionBinding` resource in the following format: + * `projects/{project}/locations/{location}/extensionBindings/{extension_binding}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Priority of the extension binding. Lower numbers indicate higher priority. Priority + * of extension bindings are used to determine the order in which extension bindings are applied + * to a request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** + * Required. The name of the extension that this binding should attach to target resources. + * Format: For Google-provided extensions, specify the service endpoint (see [Model Armor + * integration](https://docs.cloud.google.com/model-armor/integrations)) + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String producerExtension; + + /** + * Optional. Additional metadata that should be passed to the attached extension with each + * request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map producerMetadata; + + /** + * Required. Specifies a target to which this `ExtensionBinding` should be attached. The target + * can be either a single resource or a scope of resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExtensionBindingTarget target; + + /** + * Output only. The timestamp when the resource was updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The timestamp when the resource was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The timestamp when the resource was created. + * @param createTime createTime or {@code null} for none + */ + public ExtensionBinding setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. A human-readable description of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. A human-readable description of the resource. + * @param description description or {@code null} for none + */ + public ExtensionBinding setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * 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. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * 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. + * @param etag etag or {@code null} for none + */ + public ExtensionBinding setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * 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. + * @return value or {@code null} for none + */ + public java.lang.Boolean getFailOpen() { + return failOpen; + } + + /** + * 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. + * @param failOpen failOpen or {@code null} for none + */ + public ExtensionBinding setFailOpen(java.lang.Boolean failOpen) { + this.failOpen = failOpen; + return this; + } + + /** + * 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). + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * 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). + * @param labels labels or {@code null} for none + */ + public ExtensionBinding setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Optional. A list of match conditions to match against the incoming request. The extension will + * be invoked if at least one condition matches the request, or if no match conditions are + * specified. Limited to 5 conditions. + * @return value or {@code null} for none + */ + public java.util.List getMatchConditions() { + return matchConditions; + } + + /** + * Optional. A list of match conditions to match against the incoming request. The extension will + * be invoked if at least one condition matches the request, or if no match conditions are + * specified. Limited to 5 conditions. + * @param matchConditions matchConditions or {@code null} for none + */ + public ExtensionBinding setMatchConditions(java.util.List matchConditions) { + this.matchConditions = matchConditions; + return this; + } + + /** + * Identifier. Name of the `ExtensionBinding` resource in the following format: + * `projects/{project}/locations/{location}/extensionBindings/{extension_binding}`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Name of the `ExtensionBinding` resource in the following format: + * `projects/{project}/locations/{location}/extensionBindings/{extension_binding}`. + * @param name name or {@code null} for none + */ + public ExtensionBinding setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. Priority of the extension binding. Lower numbers indicate higher priority. Priority + * of extension bindings are used to determine the order in which extension bindings are applied + * to a request. + * @return value or {@code null} for none + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** + * Optional. Priority of the extension binding. Lower numbers indicate higher priority. Priority + * of extension bindings are used to determine the order in which extension bindings are applied + * to a request. + * @param priority priority or {@code null} for none + */ + public ExtensionBinding setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + /** + * Required. The name of the extension that this binding should attach to target resources. + * Format: For Google-provided extensions, specify the service endpoint (see [Model Armor + * integration](https://docs.cloud.google.com/model-armor/integrations)) + * @return value or {@code null} for none + */ + public java.lang.String getProducerExtension() { + return producerExtension; + } + + /** + * Required. The name of the extension that this binding should attach to target resources. + * Format: For Google-provided extensions, specify the service endpoint (see [Model Armor + * integration](https://docs.cloud.google.com/model-armor/integrations)) + * @param producerExtension producerExtension or {@code null} for none + */ + public ExtensionBinding setProducerExtension(java.lang.String producerExtension) { + this.producerExtension = producerExtension; + return this; + } + + /** + * Optional. Additional metadata that should be passed to the attached extension with each + * request. + * @return value or {@code null} for none + */ + public java.util.Map getProducerMetadata() { + return producerMetadata; + } + + /** + * Optional. Additional metadata that should be passed to the attached extension with each + * request. + * @param producerMetadata producerMetadata or {@code null} for none + */ + public ExtensionBinding setProducerMetadata(java.util.Map producerMetadata) { + this.producerMetadata = producerMetadata; + return this; + } + + /** + * Required. Specifies a target to which this `ExtensionBinding` should be attached. The target + * can be either a single resource or a scope of resources. + * @return value or {@code null} for none + */ + public ExtensionBindingTarget getTarget() { + return target; + } + + /** + * Required. Specifies a target to which this `ExtensionBinding` should be attached. The target + * can be either a single resource or a scope of resources. + * @param target target or {@code null} for none + */ + public ExtensionBinding setTarget(ExtensionBindingTarget target) { + this.target = target; + return this; + } + + /** + * Output only. The timestamp when the resource was updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The timestamp when the resource was updated. + * @param updateTime updateTime or {@code null} for none + */ + public ExtensionBinding setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public ExtensionBinding set(String fieldName, Object value) { + return (ExtensionBinding) super.set(fieldName, value); + } + + @Override + public ExtensionBinding clone() { + return (ExtensionBinding) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchCondition.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchCondition.java new file mode 100644 index 00000000000..6439f0f9b5a --- /dev/null +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchCondition.java @@ -0,0 +1,69 @@ +/* + * 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; + +/** + * Conditions to match against the incoming 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 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.List hosts; + + static { + // hack to force ProGuard to consider ExtensionBindingMatchConditionStringMatch used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(ExtensionBindingMatchConditionStringMatch.class); + } + + /** + * Optional. A list of paths to match against. Limited to 10 paths. If not specified, any path is + * allowed. Note that this path match includes the query parameters. For gRPC services, this + * should be a fully-qualified name of the form /package.service/method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List paths; + + static { + // hack to force ProGuard to consider ExtensionBindingMatchConditionStringMatch used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(ExtensionBindingMatchConditionStringMatch.class); + } + + /** + * Optional. A list of non-empty strings whose value is matched against the resource value. If not + * specified, any resource is allowed. If specified, a match occurs if any of the resources + * matches the resource value in the request. Limited to 5 resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resources; + + static { + // hack to force ProGuard to consider ExtensionBindingMatchConditionStringMatch used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(ExtensionBindingMatchConditionStringMatch.class); + } + + /** + * Optional. A set of HTTP headers to match against. If not specified, requests with any headers + * are matched. + * @return value or {@code null} for none + */ + public ExtensionBindingMatchConditionToDestinationHeaderSet getHeaderSet() { + return headerSet; + } + + /** + * Optional. A set of HTTP headers to match against. If not specified, requests with any headers + * are matched. + * @param headerSet headerSet or {@code null} for none + */ + public ExtensionBindingMatchConditionToDestination setHeaderSet(ExtensionBindingMatchConditionToDestinationHeaderSet headerSet) { + this.headerSet = headerSet; + return this; + } + + /** + * 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. + * @return value or {@code null} for none + */ + public java.util.List getHosts() { + return hosts; + } + + /** + * 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. + * @param hosts hosts or {@code null} for none + */ + public ExtensionBindingMatchConditionToDestination setHosts(java.util.List hosts) { + this.hosts = hosts; + return this; + } + + /** + * Optional. A list of paths to match against. Limited to 10 paths. If not specified, any path is + * allowed. Note that this path match includes the query parameters. For gRPC services, this + * should be a fully-qualified name of the form /package.service/method. + * @return value or {@code null} for none + */ + public java.util.List getPaths() { + return paths; + } + + /** + * Optional. A list of paths to match against. Limited to 10 paths. If not specified, any path is + * allowed. Note that this path match includes the query parameters. For gRPC services, this + * should be a fully-qualified name of the form /package.service/method. + * @param paths paths or {@code null} for none + */ + public ExtensionBindingMatchConditionToDestination setPaths(java.util.List paths) { + this.paths = paths; + return this; + } + + /** + * Optional. A list of non-empty strings whose value is matched against the resource value. If not + * specified, any resource is allowed. If specified, a match occurs if any of the resources + * matches the resource value in the request. Limited to 5 resources. + * @return value or {@code null} for none + */ + public java.util.List getResources() { + return resources; + } + + /** + * Optional. A list of non-empty strings whose value is matched against the resource value. If not + * specified, any resource is allowed. If specified, a match occurs if any of the resources + * matches the resource value in the request. Limited to 5 resources. + * @param resources resources or {@code null} for none + */ + public ExtensionBindingMatchConditionToDestination setResources(java.util.List resources) { + this.resources = resources; + return this; + } + + @Override + public ExtensionBindingMatchConditionToDestination set(String fieldName, Object value) { + return (ExtensionBindingMatchConditionToDestination) super.set(fieldName, value); + } + + @Override + public ExtensionBindingMatchConditionToDestination clone() { + return (ExtensionBindingMatchConditionToDestination) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionToDestinationHeaderSet.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionToDestinationHeaderSet.java new file mode 100644 index 00000000000..3add16c348d --- /dev/null +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingMatchConditionToDestinationHeaderSet.java @@ -0,0 +1,78 @@ +/* + * 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 a set of HTTP headers to match against. + * + *

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 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.List headers; + + static { + // hack to force ProGuard to consider ExtensionBindingMatchConditionHeaderMatch used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(ExtensionBindingMatchConditionHeaderMatch.class); + } + + /** + * 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. + * @return value or {@code null} for none + */ + public java.util.List getHeaders() { + return headers; + } + + /** + * 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. + * @param headers headers or {@code null} for none + */ + public ExtensionBindingMatchConditionToDestinationHeaderSet setHeaders(java.util.List headers) { + this.headers = headers; + return this; + } + + @Override + public ExtensionBindingMatchConditionToDestinationHeaderSet set(String fieldName, Object value) { + return (ExtensionBindingMatchConditionToDestinationHeaderSet) super.set(fieldName, value); + } + + @Override + public ExtensionBindingMatchConditionToDestinationHeaderSet clone() { + return (ExtensionBindingMatchConditionToDestinationHeaderSet) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingTarget.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingTarget.java new file mode 100644 index 00000000000..32246714912 --- /dev/null +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingTarget.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; + +/** + * Specifies a list of targets to which this `ExtensionBinding` should attach. + * + *

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 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.List resources; + + /** + * Optional. Specifies the scope of resources to which this binding should attach. Exactly one of + * `resources` or `scope` must be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExtensionBindingTargetScope scope; + + /** + * 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}`. + * @return value or {@code null} for none + */ + public java.util.List getResources() { + return resources; + } + + /** + * 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}`. + * @param resources resources or {@code null} for none + */ + public ExtensionBindingTarget setResources(java.util.List resources) { + this.resources = resources; + return this; + } + + /** + * Optional. Specifies the scope of resources to which this binding should attach. Exactly one of + * `resources` or `scope` must be set. + * @return value or {@code null} for none + */ + public ExtensionBindingTargetScope getScope() { + return scope; + } + + /** + * Optional. Specifies the scope of resources to which this binding should attach. Exactly one of + * `resources` or `scope` must be set. + * @param scope scope or {@code null} for none + */ + public ExtensionBindingTarget setScope(ExtensionBindingTargetScope scope) { + this.scope = scope; + return this; + } + + @Override + public ExtensionBindingTarget set(String fieldName, Object value) { + return (ExtensionBindingTarget) super.set(fieldName, value); + } + + @Override + public ExtensionBindingTarget clone() { + return (ExtensionBindingTarget) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingTargetScope.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingTargetScope.java new file mode 100644 index 00000000000..2da90dbbf1c --- /dev/null +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ExtensionBindingTargetScope.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; + +/** + * Specifies the scope of resources to which this binding should attach. + * + *

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 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.List resourceTypes; + + /** + * Required. Parent resource name specification, in the format: `projects/{project_number}`. + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Parent resource name specification, in the format: `projects/{project_number}`. + * @param parent parent or {@code null} for none + */ + public ExtensionBindingTargetScope setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + /** + * Required. Type of the resource to which the binding should attach. Limited to 1 resource type. + * @return value or {@code null} for none + */ + public java.util.List getResourceTypes() { + return resourceTypes; + } + + /** + * Required. Type of the resource to which the binding should attach. Limited to 1 resource type. + * @param resourceTypes resourceTypes or {@code null} for none + */ + public ExtensionBindingTargetScope setResourceTypes(java.util.List resourceTypes) { + this.resourceTypes = resourceTypes; + return this; + } + + @Override + public ExtensionBindingTargetScope set(String fieldName, Object value) { + return (ExtensionBindingTargetScope) super.set(fieldName, value); + } + + @Override + public ExtensionBindingTargetScope clone() { + return (ExtensionBindingTargetScope) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ListExtensionBindingsResponse.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ListExtensionBindingsResponse.java new file mode 100644 index 00000000000..2984fc8a625 --- /dev/null +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ListExtensionBindingsResponse.java @@ -0,0 +1,135 @@ +/* + * 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; + +/** + * Response returned by the `ListExtensionBindings` method. + * + *

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 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.List extensionBindings; + + static { + // hack to force ProGuard to consider ExtensionBinding used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(ExtensionBinding.class); + } + + /** + * 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; + + /** + * Unordered list. Unreachable resources. Populated when the request attempts to list all + * resources across all supported locations, while some locations are temporarily unavailable. The + * resource names are in the format + * `projects/{project}/locations/{location}/extensionBindings/{extension_binding}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * List of `ExtensionBinding` resources. + * @return value or {@code null} for none + */ + public java.util.List getExtensionBindings() { + return extensionBindings; + } + + /** + * List of `ExtensionBinding` resources. + * @param extensionBindings extensionBindings or {@code null} for none + */ + public ListExtensionBindingsResponse setExtensionBindings(java.util.List extensionBindings) { + this.extensionBindings = extensionBindings; + return this; + } + + /** + * 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`. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * 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`. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListExtensionBindingsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Unordered list. Unreachable resources. Populated when the request attempts to list all + * resources across all supported locations, while some locations are temporarily unavailable. The + * resource names are in the format + * `projects/{project}/locations/{location}/extensionBindings/{extension_binding}`. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Unreachable resources. Populated when the request attempts to list all + * resources across all supported locations, while some locations are temporarily unavailable. The + * resource names are in the format + * `projects/{project}/locations/{location}/extensionBindings/{extension_binding}`. + * @param unreachable unreachable or {@code null} for none + */ + public ListExtensionBindingsResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListExtensionBindingsResponse set(String fieldName, Object value) { + return (ListExtensionBindingsResponse) super.set(fieldName, value); + } + + @Override + public ListExtensionBindingsResponse clone() { + return (ListExtensionBindingsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ListProducerExtensionsResponse.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ListProducerExtensionsResponse.java new file mode 100644 index 00000000000..efa11b319b7 --- /dev/null +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ListProducerExtensionsResponse.java @@ -0,0 +1,129 @@ +/* + * 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; + +/** + * Response returned by the `ListProducerExtensions` method. + * + *

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 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.List producerExtensions; + + /** + * Unordered list. Unreachable resources. Populated when the request attempts to list all + * resources across all supported locations, while some locations are temporarily unavailable. The + * resource names are in the format: + * `projects/{project}/locations/{location}/producerExtensions/{producer_extension}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * 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`. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * 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`. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListProducerExtensionsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * List of `ProducerExtension` resources. + * @return value or {@code null} for none + */ + public java.util.List getProducerExtensions() { + return producerExtensions; + } + + /** + * List of `ProducerExtension` resources. + * @param producerExtensions producerExtensions or {@code null} for none + */ + public ListProducerExtensionsResponse setProducerExtensions(java.util.List producerExtensions) { + this.producerExtensions = producerExtensions; + return this; + } + + /** + * Unordered list. Unreachable resources. Populated when the request attempts to list all + * resources across all supported locations, while some locations are temporarily unavailable. The + * resource names are in the format: + * `projects/{project}/locations/{location}/producerExtensions/{producer_extension}`. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Unreachable resources. Populated when the request attempts to list all + * resources across all supported locations, while some locations are temporarily unavailable. The + * resource names are in the format: + * `projects/{project}/locations/{location}/producerExtensions/{producer_extension}`. + * @param unreachable unreachable or {@code null} for none + */ + public ListProducerExtensionsResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListProducerExtensionsResponse set(String fieldName, Object value) { + return (ListProducerExtensionsResponse) super.set(fieldName, value); + } + + @Override + public ListProducerExtensionsResponse clone() { + return (ListProducerExtensionsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ProducerExtension.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ProducerExtension.java new file mode 100644 index 00000000000..8c2ba29445d --- /dev/null +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ProducerExtension.java @@ -0,0 +1,247 @@ +/* + * 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; + +/** + * `ProducerExtension` is a resource representing producer defined configuration for their service + * extension. + * + *

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 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.Map labels; + + /** + * Identifier. Name of the `ProducerExtension` resource in the following format: + * `projects/{project}/locations/{location}/producerExtensions/{producer_extension}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The phase in which this `ProducerExtension` should execute. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phase; + + /** + * Output only. The timestamp when the resource was updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The timestamp when the resource was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The timestamp when the resource was created. + * @param createTime createTime or {@code null} for none + */ + public ProducerExtension setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. A human-readable description of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. A human-readable description of the resource. + * @param description description or {@code null} for none + */ + public ProducerExtension setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * 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. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * 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. + * @param etag etag or {@code null} for none + */ + public ProducerExtension setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Required. The configuration for the service that this `ProducerExtension` offers. + * @return value or {@code null} for none + */ + public ProducerExtensionExtensionSettings getExtensionSettings() { + return extensionSettings; + } + + /** + * Required. The configuration for the service that this `ProducerExtension` offers. + * @param extensionSettings extensionSettings or {@code null} for none + */ + public ProducerExtension setExtensionSettings(ProducerExtensionExtensionSettings extensionSettings) { + this.extensionSettings = extensionSettings; + return this; + } + + /** + * 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). + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * 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). + * @param labels labels or {@code null} for none + */ + public ProducerExtension setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Identifier. Name of the `ProducerExtension` resource in the following format: + * `projects/{project}/locations/{location}/producerExtensions/{producer_extension}`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Name of the `ProducerExtension` resource in the following format: + * `projects/{project}/locations/{location}/producerExtensions/{producer_extension}`. + * @param name name or {@code null} for none + */ + public ProducerExtension setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The phase in which this `ProducerExtension` should execute. + * @return value or {@code null} for none + */ + public java.lang.String getPhase() { + return phase; + } + + /** + * Required. The phase in which this `ProducerExtension` should execute. + * @param phase phase or {@code null} for none + */ + public ProducerExtension setPhase(java.lang.String phase) { + this.phase = phase; + return this; + } + + /** + * Output only. The timestamp when the resource was updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The timestamp when the resource was updated. + * @param updateTime updateTime or {@code null} for none + */ + public ProducerExtension setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public ProducerExtension set(String fieldName, Object value) { + return (ProducerExtension) super.set(fieldName, value); + } + + @Override + public ProducerExtension clone() { + return (ProducerExtension) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ProducerExtensionExtensionSettings.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ProducerExtensionExtensionSettings.java new file mode 100644 index 00000000000..a2c60b86b57 --- /dev/null +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ProducerExtensionExtensionSettings.java @@ -0,0 +1,138 @@ +/* + * 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; + +/** + * The configuration for the service that this `ProducerExtension` offers. + * + *

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 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 supportedEvents; + + /** + * Optional. The `:authority` header in the request sent to the extension service. + * @return value or {@code null} for none + */ + public java.lang.String getAuthority() { + return authority; + } + + /** + * Optional. The `:authority` header in the request sent to the extension service. + * @param authority authority or {@code null} for none + */ + public ProducerExtensionExtensionSettings setAuthority(java.lang.String authority) { + this.authority = authority; + return this; + } + + /** + * Optional. Whether the extension should function in observability mode. + * @return value or {@code null} for none + */ + public java.lang.Boolean getObservabilityMode() { + return observabilityMode; + } + + /** + * Optional. Whether the extension should function in observability mode. + * @param observabilityMode observabilityMode or {@code null} for none + */ + public ProducerExtensionExtensionSettings setObservabilityMode(java.lang.Boolean observabilityMode) { + this.observabilityMode = observabilityMode; + return this; + } + + /** + * Required. URI of the PSC attachment. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * Required. URI of the PSC attachment. + * @param service service or {@code null} for none + */ + public ProducerExtensionExtensionSettings setService(java.lang.String service) { + this.service = service; + return this; + } + + /** + * Required. The event types supported by the extension. + * @return value or {@code null} for none + */ + public java.util.List getSupportedEvents() { + return supportedEvents; + } + + /** + * Required. The event types supported by the extension. + * @param supportedEvents supportedEvents or {@code null} for none + */ + public ProducerExtensionExtensionSettings setSupportedEvents(java.util.List supportedEvents) { + this.supportedEvents = supportedEvents; + return this; + } + + @Override + public ProducerExtensionExtensionSettings set(String fieldName, Object value) { + return (ProducerExtensionExtensionSettings) super.set(fieldName, value); + } + + @Override + public ProducerExtensionExtensionSettings clone() { + return (ProducerExtensionExtensionSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1/2.0.0/pom.xml b/clients/google-api-services-networkservices/v1/2.0.0/pom.xml index ff33050bb7a..2f2cf2b237a 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/pom.xml +++ b/clients/google-api-services-networkservices/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-networkservices - v1-rev20260803-2.0.0 - Network Services API v1-rev20260803-2.0.0 + v1-rev20260807-2.0.0 + Network Services API v1-rev20260807-2.0.0 jar 2011 diff --git a/clients/google-api-services-networkservices/v1/README.md b/clients/google-api-services-networkservices/v1/README.md index 214db69e05f..29cbe03ec70 100644 --- a/clients/google-api-services-networkservices/v1/README.md +++ b/clients/google-api-services-networkservices/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-networkservices - v1-rev20260803-2.0.0 + v1-rev20260807-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-networkservices:v1-rev20260803-2.0.0' + implementation 'com.google.apis:google-api-services-networkservices:v1-rev20260807-2.0.0' } ```