From 8d70d831ea9158d742955205ed2c0b484da70abf Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Thu, 11 Jun 2026 19:38:29 -0700 Subject: [PATCH] chore: regenerate cloudproductregistry client --- .../v1/2.0.0/README.md | 44 + .../v1/CloudProductRegistry.java | 1744 +++++++++++++++++ .../v1/CloudProductRegistryRequest.java | 267 +++ ...loudProductRegistryRequestInitializer.java | 119 ++ .../ListLogicalProductVariantsResponse.java | 94 + .../v1/model/ListLogicalProductsResponse.java | 94 + .../v1/model/ListProductSuitesResponse.java | 94 + .../v1/model/LogicalProduct.java | 226 +++ .../v1/model/LogicalProductVariant.java | 179 ++ .../v1/model/LookupEntityResponse.java | 115 ++ .../v1/model/ProductSuite.java | 175 ++ .../v1/2.0.0/pom.xml | 219 +++ .../v1/README.md | 44 + 13 files changed, 3414 insertions(+) create mode 100644 clients/google-api-services-cloudproductregistry/v1/2.0.0/README.md create mode 100644 clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/CloudProductRegistry.java create mode 100644 clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/CloudProductRegistryRequest.java create mode 100644 clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/CloudProductRegistryRequestInitializer.java create mode 100644 clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/ListLogicalProductVariantsResponse.java create mode 100644 clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/ListLogicalProductsResponse.java create mode 100644 clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/ListProductSuitesResponse.java create mode 100644 clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/LogicalProduct.java create mode 100644 clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/LogicalProductVariant.java create mode 100644 clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/LookupEntityResponse.java create mode 100644 clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/ProductSuite.java create mode 100644 clients/google-api-services-cloudproductregistry/v1/2.0.0/pom.xml create mode 100644 clients/google-api-services-cloudproductregistry/v1/README.md diff --git a/clients/google-api-services-cloudproductregistry/v1/2.0.0/README.md b/clients/google-api-services-cloudproductregistry/v1/2.0.0/README.md new file mode 100644 index 00000000000..f1745806ceb --- /dev/null +++ b/clients/google-api-services-cloudproductregistry/v1/2.0.0/README.md @@ -0,0 +1,44 @@ +# Cloud Product Registry API Client Library for Java + +cloudproductregistry.googleapis.com API. + +This page contains information about getting started with the Cloud Product Registry API +using the Google API Client Library for Java. In addition, you may be interested +in the following documentation: + +* Browse the [Javadoc reference for the Cloud Product Registry API][javadoc] +* Read the [Developer's Guide for the Google API Client Library for Java][google-api-client]. +* Interact with this API in your browser using the [APIs Explorer for the Cloud Product Registry API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-cloudproductregistry + v1-rev20260611-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-cloudproductregistry:v1-rev20260611-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-cloudproductregistry/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/cloudproductregistry/v1/ diff --git a/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/CloudProductRegistry.java b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/CloudProductRegistry.java new file mode 100644 index 00000000000..96da752d253 --- /dev/null +++ b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/CloudProductRegistry.java @@ -0,0 +1,1744 @@ +/* + * 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.cloudproductregistry.v1; + +/** + * Service definition for CloudProductRegistry (v1). + * + *

+ * cloudproductregistry.googleapis.com API. + *

+ * + *

+ * For more information about this service, see the + * API Documentation + *

+ * + *

+ * This service uses {@link CloudProductRegistryRequestInitializer} to initialize global parameters via its + * {@link Builder}. + *

+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class CloudProductRegistry extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient { + + // Note: Leave this static initializer at the top of the file. + static { + com.google.api.client.util.Preconditions.checkState( + (com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 && + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 32 || + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION == 31 && + com.google.api.client.googleapis.GoogleUtils.BUGFIX_VERSION >= 1))) || + com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION >= 2, + "You are currently running with version %s of google-api-client. " + + "You need at least version 1.31.1 of google-api-client to run version " + + "2.0.0 of the Cloud Product Registry API library.", com.google.api.client.googleapis.GoogleUtils.VERSION); + } + + /** + * The default encoded root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_ROOT_URL = "https://cloudproductregistry.googleapis.com/"; + + /** + * The default encoded mTLS root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.31 + */ + public static final String DEFAULT_MTLS_ROOT_URL = "https://cloudproductregistry.mtls.googleapis.com/"; + + /** + * The default encoded service path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_SERVICE_PATH = ""; + + /** + * The default encoded batch path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.23 + */ + public static final String DEFAULT_BATCH_PATH = "batch"; + + /** + * The default encoded base URL of the service. This is determined when the library is generated + * and normally should not be changed. + */ + public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH; + + /** + * Constructor. + * + *

+ * Use {@link Builder} if you need to specify any of the optional parameters. + *

+ * + * @param transport HTTP transport, which should normally be: + * + * @param jsonFactory JSON factory, which may be: + * + * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public CloudProductRegistry(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + this(new Builder(transport, jsonFactory, httpRequestInitializer)); + } + + /** + * @param builder builder + */ + CloudProductRegistry(Builder builder) { + super(builder); + } + + @Override + protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest httpClientRequest) throws java.io.IOException { + super.initialize(httpClientRequest); + } + + /** + * An accessor for creating requests from the LogicalProducts collection. + * + *

The typical use is:

+ *
+   *   {@code CloudProductRegistry cloudproductregistry = new CloudProductRegistry(...);}
+   *   {@code CloudProductRegistry.LogicalProducts.List request = cloudproductregistry.logicalProducts().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public LogicalProducts logicalProducts() { + return new LogicalProducts(); + } + + /** + * The "logicalProducts" collection of methods. + */ + public class LogicalProducts { + + /** + * Gets details of a LogicalProduct. + * + * Create a request for the method "logicalProducts.get". + * + * This request holds the parameters needed by the cloudproductregistry server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the LogicalProduct to retrieve. Format: logicalProducts/{logical_product} + * @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 CloudProductRegistryRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^logicalProducts/[^/]+$"); + + /** + * Gets details of a LogicalProduct. + * + * Create a request for the method "logicalProducts.get". + * + * This request holds the parameters needed by the the cloudproductregistry 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 name of the LogicalProduct to retrieve. Format: logicalProducts/{logical_product} + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudProductRegistry.this, "GET", REST_PATH, null, com.google.api.services.cloudproductregistry.v1.model.LogicalProduct.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 " + + "^logicalProducts/[^/]+$"); + } + } + + @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 name of the LogicalProduct to retrieve. Format: + * logicalProducts/{logical_product} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the LogicalProduct to retrieve. Format: logicalProducts/{logical_product} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the LogicalProduct to retrieve. Format: + * logicalProducts/{logical_product} + */ + 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 " + + "^logicalProducts/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists LogicalProducts matching given criteria. + * + * Create a request for the method "logicalProducts.list". + * + * This request holds the parameters needed by the cloudproductregistry server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @return the request + */ + public List list() throws java.io.IOException { + List result = new List(); + initialize(result); + return result; + } + + public class List extends CloudProductRegistryRequest { + + private static final String REST_PATH = "v1/logicalProducts"; + + /** + * Lists LogicalProducts matching given criteria. + * + * Create a request for the method "logicalProducts.list". + * + * This request holds the parameters needed by the the cloudproductregistry 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.

+ * + * @since 1.13 + */ + protected List() { + super(CloudProductRegistry.this, "GET", REST_PATH, null, com.google.api.services.cloudproductregistry.v1.model.ListLogicalProductsResponse.class); + } + + @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); + } + + /** + * Optional. The filter expression for listing logical products. Filter syntax: + * https://google.aip.dev/160 Supported fields: suite_id + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The filter expression for listing logical products. Filter syntax: + https://google.aip.dev/160 Supported fields: suite_id + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. The filter expression for listing logical products. Filter syntax: + * https://google.aip.dev/160 Supported fields: suite_id + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. The maximum number of logical products to return. The service may return fewer + * than this value. If unspecified, at most 100 logical products will be returned. The maximum + * value is 500; values above 500 will be coerced to 500. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of logical products to return. The service may return fewer than this + value. If unspecified, at most 100 logical products will be returned. The maximum value is 500; + values above 500 will be coerced to 500. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of logical products to return. The service may return fewer + * than this value. If unspecified, at most 100 logical products will be returned. The maximum + * value is 500; values above 500 will be coerced to 500. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListLogicalProducts` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListLogicalProducts` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListLogicalProducts` call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `ListLogicalProducts` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListLogicalProducts` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListLogicalProducts` must match the call that provided the 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); + } + } + /** + * Look up entities. + * + * Create a request for the method "logicalProducts.lookupEntity". + * + * This request holds the parameters needed by the cloudproductregistry server. After setting any + * optional parameters, call the {@link LookupEntity#execute()} method to invoke the remote + * operation. + * + * @param lookupUri Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product} + * logicalProducts/{logical_product}/variants/{variant} productSuites/{product_suite} + * @return the request + */ + public LookupEntity lookupEntity(java.lang.String lookupUri) throws java.io.IOException { + LookupEntity result = new LookupEntity(lookupUri); + initialize(result); + return result; + } + + public class LookupEntity extends CloudProductRegistryRequest { + + private static final String REST_PATH = "v1/{+lookupUri}:lookupEntity"; + + private final java.util.regex.Pattern LOOKUP_URI_PATTERN = + java.util.regex.Pattern.compile("^logicalProducts/[^/]+$"); + + /** + * Look up entities. + * + * Create a request for the method "logicalProducts.lookupEntity". + * + * This request holds the parameters needed by the the cloudproductregistry server. After setting + * any optional parameters, call the {@link LookupEntity#execute()} method to invoke the remote + * operation.

{@link + * LookupEntity#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param lookupUri Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product} + * logicalProducts/{logical_product}/variants/{variant} productSuites/{product_suite} + * @since 1.13 + */ + protected LookupEntity(java.lang.String lookupUri) { + super(CloudProductRegistry.this, "GET", REST_PATH, null, com.google.api.services.cloudproductregistry.v1.model.LookupEntityResponse.class); + this.lookupUri = com.google.api.client.util.Preconditions.checkNotNull(lookupUri, "Required parameter lookupUri must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LOOKUP_URI_PATTERN.matcher(lookupUri).matches(), + "Parameter lookupUri must conform to the pattern " + + "^logicalProducts/[^/]+$"); + } + } + + @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 LookupEntity set$Xgafv(java.lang.String $Xgafv) { + return (LookupEntity) super.set$Xgafv($Xgafv); + } + + @Override + public LookupEntity setAccessToken(java.lang.String accessToken) { + return (LookupEntity) super.setAccessToken(accessToken); + } + + @Override + public LookupEntity setAlt(java.lang.String alt) { + return (LookupEntity) super.setAlt(alt); + } + + @Override + public LookupEntity setCallback(java.lang.String callback) { + return (LookupEntity) super.setCallback(callback); + } + + @Override + public LookupEntity setFields(java.lang.String fields) { + return (LookupEntity) super.setFields(fields); + } + + @Override + public LookupEntity setKey(java.lang.String key) { + return (LookupEntity) super.setKey(key); + } + + @Override + public LookupEntity setOauthToken(java.lang.String oauthToken) { + return (LookupEntity) super.setOauthToken(oauthToken); + } + + @Override + public LookupEntity setPrettyPrint(java.lang.Boolean prettyPrint) { + return (LookupEntity) super.setPrettyPrint(prettyPrint); + } + + @Override + public LookupEntity setQuotaUser(java.lang.String quotaUser) { + return (LookupEntity) super.setQuotaUser(quotaUser); + } + + @Override + public LookupEntity setUploadType(java.lang.String uploadType) { + return (LookupEntity) super.setUploadType(uploadType); + } + + @Override + public LookupEntity setUploadProtocol(java.lang.String uploadProtocol) { + return (LookupEntity) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product} + * logicalProducts/{logical_product}/variants/{variant} productSuites/{product_suite} + */ + @com.google.api.client.util.Key + private java.lang.String lookupUri; + + /** Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product} + logicalProducts/{logical_product}/variants/{variant} productSuites/{product_suite} + */ + public java.lang.String getLookupUri() { + return lookupUri; + } + + /** + * Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product} + * logicalProducts/{logical_product}/variants/{variant} productSuites/{product_suite} + */ + public LookupEntity setLookupUri(java.lang.String lookupUri) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LOOKUP_URI_PATTERN.matcher(lookupUri).matches(), + "Parameter lookupUri must conform to the pattern " + + "^logicalProducts/[^/]+$"); + } + this.lookupUri = lookupUri; + return this; + } + + @Override + public LookupEntity set(String parameterName, Object value) { + return (LookupEntity) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Variants collection. + * + *

The typical use is:

+ *
+     *   {@code CloudProductRegistry cloudproductregistry = new CloudProductRegistry(...);}
+     *   {@code CloudProductRegistry.Variants.List request = cloudproductregistry.variants().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public Variants variants() { + return new Variants(); + } + + /** + * The "variants" collection of methods. + */ + public class Variants { + + /** + * Get details of a LogicalProductVariant. + * + * Create a request for the method "variants.get". + * + * This request holds the parameters needed by the cloudproductregistry server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the LogicalProductVariant to retrieve. Format: + * logicalProducts/{logical_product}/variants/{variant} + * @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 CloudProductRegistryRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^logicalProducts/[^/]+/variants/[^/]+$"); + + /** + * Get details of a LogicalProductVariant. + * + * Create a request for the method "variants.get". + * + * This request holds the parameters needed by the the cloudproductregistry 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 name of the LogicalProductVariant to retrieve. Format: + * logicalProducts/{logical_product}/variants/{variant} + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudProductRegistry.this, "GET", REST_PATH, null, com.google.api.services.cloudproductregistry.v1.model.LogicalProductVariant.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 " + + "^logicalProducts/[^/]+/variants/[^/]+$"); + } + } + + @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 name of the LogicalProductVariant to retrieve. Format: + * logicalProducts/{logical_product}/variants/{variant} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the LogicalProductVariant to retrieve. Format: + logicalProducts/{logical_product}/variants/{variant} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the LogicalProductVariant to retrieve. Format: + * logicalProducts/{logical_product}/variants/{variant} + */ + 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 " + + "^logicalProducts/[^/]+/variants/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists LogicalProductVariants matching given criteria. + * + * Create a request for the method "variants.list". + * + * This request holds the parameters needed by the cloudproductregistry server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Parent logical product id. Format: logicalProducts/{logical_product} + * @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 CloudProductRegistryRequest { + + private static final String REST_PATH = "v1/{+parent}/variants"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^logicalProducts/[^/]+$"); + + /** + * Lists LogicalProductVariants matching given criteria. + * + * Create a request for the method "variants.list". + * + * This request holds the parameters needed by the the cloudproductregistry 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. Parent logical product id. Format: logicalProducts/{logical_product} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudProductRegistry.this, "GET", REST_PATH, null, com.google.api.services.cloudproductregistry.v1.model.ListLogicalProductVariantsResponse.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 " + + "^logicalProducts/[^/]+$"); + } + } + + @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. Parent logical product id. Format: logicalProducts/{logical_product} */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Parent logical product id. Format: logicalProducts/{logical_product} + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. Parent logical product id. Format: logicalProducts/{logical_product} */ + 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 " + + "^logicalProducts/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The maximum number of logical product variants to return. The service may + * return fewer than this value. If unspecified, at most 100 logical product variants will + * be returned. The maximum value is 500; values above 500 will be coerced to 500. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of logical product variants to return. The service may return fewer + than this value. If unspecified, at most 100 logical product variants will be returned. The maximum + value is 500; values above 500 will be coerced to 500. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of logical product variants to return. The service may + * return fewer than this value. If unspecified, at most 100 logical product variants will + * be returned. The maximum value is 500; values above 500 will be coerced to 500. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListLogicalProductVariants` call. + * Provide this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListLogicalProductVariants` must match the call that provided the page + * token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListLogicalProductVariants` call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `ListLogicalProductVariants` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListLogicalProductVariants` call. + * Provide this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListLogicalProductVariants` must match the call that provided the 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); + } + } + /** + * Look up entities. + * + * Create a request for the method "variants.lookupEntity". + * + * This request holds the parameters needed by the cloudproductregistry server. After setting any + * optional parameters, call the {@link LookupEntity#execute()} method to invoke the remote + * operation. + * + * @param lookupUri Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product} + * logicalProducts/{logical_product}/variants/{variant} productSuites/{product_suite} + * @return the request + */ + public LookupEntity lookupEntity(java.lang.String lookupUri) throws java.io.IOException { + LookupEntity result = new LookupEntity(lookupUri); + initialize(result); + return result; + } + + public class LookupEntity extends CloudProductRegistryRequest { + + private static final String REST_PATH = "v1/{+lookupUri}:lookupEntity"; + + private final java.util.regex.Pattern LOOKUP_URI_PATTERN = + java.util.regex.Pattern.compile("^logicalProducts/[^/]+/variants/[^/]+$"); + + /** + * Look up entities. + * + * Create a request for the method "variants.lookupEntity". + * + * This request holds the parameters needed by the the cloudproductregistry server. After setting + * any optional parameters, call the {@link LookupEntity#execute()} method to invoke the remote + * operation.

{@link + * LookupEntity#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param lookupUri Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product} + * logicalProducts/{logical_product}/variants/{variant} productSuites/{product_suite} + * @since 1.13 + */ + protected LookupEntity(java.lang.String lookupUri) { + super(CloudProductRegistry.this, "GET", REST_PATH, null, com.google.api.services.cloudproductregistry.v1.model.LookupEntityResponse.class); + this.lookupUri = com.google.api.client.util.Preconditions.checkNotNull(lookupUri, "Required parameter lookupUri must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LOOKUP_URI_PATTERN.matcher(lookupUri).matches(), + "Parameter lookupUri must conform to the pattern " + + "^logicalProducts/[^/]+/variants/[^/]+$"); + } + } + + @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 LookupEntity set$Xgafv(java.lang.String $Xgafv) { + return (LookupEntity) super.set$Xgafv($Xgafv); + } + + @Override + public LookupEntity setAccessToken(java.lang.String accessToken) { + return (LookupEntity) super.setAccessToken(accessToken); + } + + @Override + public LookupEntity setAlt(java.lang.String alt) { + return (LookupEntity) super.setAlt(alt); + } + + @Override + public LookupEntity setCallback(java.lang.String callback) { + return (LookupEntity) super.setCallback(callback); + } + + @Override + public LookupEntity setFields(java.lang.String fields) { + return (LookupEntity) super.setFields(fields); + } + + @Override + public LookupEntity setKey(java.lang.String key) { + return (LookupEntity) super.setKey(key); + } + + @Override + public LookupEntity setOauthToken(java.lang.String oauthToken) { + return (LookupEntity) super.setOauthToken(oauthToken); + } + + @Override + public LookupEntity setPrettyPrint(java.lang.Boolean prettyPrint) { + return (LookupEntity) super.setPrettyPrint(prettyPrint); + } + + @Override + public LookupEntity setQuotaUser(java.lang.String quotaUser) { + return (LookupEntity) super.setQuotaUser(quotaUser); + } + + @Override + public LookupEntity setUploadType(java.lang.String uploadType) { + return (LookupEntity) super.setUploadType(uploadType); + } + + @Override + public LookupEntity setUploadProtocol(java.lang.String uploadProtocol) { + return (LookupEntity) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product} + * logicalProducts/{logical_product}/variants/{variant} productSuites/{product_suite} + */ + @com.google.api.client.util.Key + private java.lang.String lookupUri; + + /** Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product} + logicalProducts/{logical_product}/variants/{variant} productSuites/{product_suite} + */ + public java.lang.String getLookupUri() { + return lookupUri; + } + + /** + * Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product} + * logicalProducts/{logical_product}/variants/{variant} productSuites/{product_suite} + */ + public LookupEntity setLookupUri(java.lang.String lookupUri) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LOOKUP_URI_PATTERN.matcher(lookupUri).matches(), + "Parameter lookupUri must conform to the pattern " + + "^logicalProducts/[^/]+/variants/[^/]+$"); + } + this.lookupUri = lookupUri; + return this; + } + + @Override + public LookupEntity set(String parameterName, Object value) { + return (LookupEntity) super.set(parameterName, value); + } + } + + } + } + + /** + * An accessor for creating requests from the ProductSuites collection. + * + *

The typical use is:

+ *
+   *   {@code CloudProductRegistry cloudproductregistry = new CloudProductRegistry(...);}
+   *   {@code CloudProductRegistry.ProductSuites.List request = cloudproductregistry.productSuites().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public ProductSuites productSuites() { + return new ProductSuites(); + } + + /** + * The "productSuites" collection of methods. + */ + public class ProductSuites { + + /** + * Get details of a ProductSuite. + * + * Create a request for the method "productSuites.get". + * + * This request holds the parameters needed by the cloudproductregistry server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the ProductSuite to retrieve. Format: productSuites/{product_suite} + * @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 CloudProductRegistryRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^productSuites/[^/]+$"); + + /** + * Get details of a ProductSuite. + * + * Create a request for the method "productSuites.get". + * + * This request holds the parameters needed by the the cloudproductregistry 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 name of the ProductSuite to retrieve. Format: productSuites/{product_suite} + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudProductRegistry.this, "GET", REST_PATH, null, com.google.api.services.cloudproductregistry.v1.model.ProductSuite.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 " + + "^productSuites/[^/]+$"); + } + } + + @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 name of the ProductSuite to retrieve. Format: productSuites/{product_suite} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the ProductSuite to retrieve. Format: productSuites/{product_suite} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the ProductSuite to retrieve. Format: productSuites/{product_suite} + */ + 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 " + + "^productSuites/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists ProductSuites. + * + * Create a request for the method "productSuites.list". + * + * This request holds the parameters needed by the cloudproductregistry server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @return the request + */ + public List list() throws java.io.IOException { + List result = new List(); + initialize(result); + return result; + } + + public class List extends CloudProductRegistryRequest { + + private static final String REST_PATH = "v1/productSuites"; + + /** + * Lists ProductSuites. + * + * Create a request for the method "productSuites.list". + * + * This request holds the parameters needed by the the cloudproductregistry 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.

+ * + * @since 1.13 + */ + protected List() { + super(CloudProductRegistry.this, "GET", REST_PATH, null, com.google.api.services.cloudproductregistry.v1.model.ListProductSuitesResponse.class); + } + + @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); + } + + /** + * Optional. The maximum number of suites to return. The service may return fewer than this + * value. If unspecified, at most 100 suites will be returned. The maximum value is 500; + * values above 500 will be coerced to 500. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of suites to return. The service may return fewer than this value. If + unspecified, at most 100 suites will be returned. The maximum value is 500; values above 500 will + be coerced to 500. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of suites to return. The service may return fewer than this + * value. If unspecified, at most 100 suites will be returned. The maximum value is 500; + * values above 500 will be coerced to 500. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListProductSuites` call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * `ListProductSuites` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListProductSuites` call. Provide this to retrieve + the subsequent page. When paginating, all other parameters provided to `ListProductSuites` must + match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListProductSuites` call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * `ListProductSuites` must match the call that provided the 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); + } + } + /** + * Look up entities. + * + * Create a request for the method "productSuites.lookupEntity". + * + * This request holds the parameters needed by the cloudproductregistry server. After setting any + * optional parameters, call the {@link LookupEntity#execute()} method to invoke the remote + * operation. + * + * @param lookupUri Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product} + * logicalProducts/{logical_product}/variants/{variant} productSuites/{product_suite} + * @return the request + */ + public LookupEntity lookupEntity(java.lang.String lookupUri) throws java.io.IOException { + LookupEntity result = new LookupEntity(lookupUri); + initialize(result); + return result; + } + + public class LookupEntity extends CloudProductRegistryRequest { + + private static final String REST_PATH = "v1/{+lookupUri}:lookupEntity"; + + private final java.util.regex.Pattern LOOKUP_URI_PATTERN = + java.util.regex.Pattern.compile("^productSuites/[^/]+$"); + + /** + * Look up entities. + * + * Create a request for the method "productSuites.lookupEntity". + * + * This request holds the parameters needed by the the cloudproductregistry server. After setting + * any optional parameters, call the {@link LookupEntity#execute()} method to invoke the remote + * operation.

{@link + * LookupEntity#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param lookupUri Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product} + * logicalProducts/{logical_product}/variants/{variant} productSuites/{product_suite} + * @since 1.13 + */ + protected LookupEntity(java.lang.String lookupUri) { + super(CloudProductRegistry.this, "GET", REST_PATH, null, com.google.api.services.cloudproductregistry.v1.model.LookupEntityResponse.class); + this.lookupUri = com.google.api.client.util.Preconditions.checkNotNull(lookupUri, "Required parameter lookupUri must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LOOKUP_URI_PATTERN.matcher(lookupUri).matches(), + "Parameter lookupUri must conform to the pattern " + + "^productSuites/[^/]+$"); + } + } + + @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 LookupEntity set$Xgafv(java.lang.String $Xgafv) { + return (LookupEntity) super.set$Xgafv($Xgafv); + } + + @Override + public LookupEntity setAccessToken(java.lang.String accessToken) { + return (LookupEntity) super.setAccessToken(accessToken); + } + + @Override + public LookupEntity setAlt(java.lang.String alt) { + return (LookupEntity) super.setAlt(alt); + } + + @Override + public LookupEntity setCallback(java.lang.String callback) { + return (LookupEntity) super.setCallback(callback); + } + + @Override + public LookupEntity setFields(java.lang.String fields) { + return (LookupEntity) super.setFields(fields); + } + + @Override + public LookupEntity setKey(java.lang.String key) { + return (LookupEntity) super.setKey(key); + } + + @Override + public LookupEntity setOauthToken(java.lang.String oauthToken) { + return (LookupEntity) super.setOauthToken(oauthToken); + } + + @Override + public LookupEntity setPrettyPrint(java.lang.Boolean prettyPrint) { + return (LookupEntity) super.setPrettyPrint(prettyPrint); + } + + @Override + public LookupEntity setQuotaUser(java.lang.String quotaUser) { + return (LookupEntity) super.setQuotaUser(quotaUser); + } + + @Override + public LookupEntity setUploadType(java.lang.String uploadType) { + return (LookupEntity) super.setUploadType(uploadType); + } + + @Override + public LookupEntity setUploadProtocol(java.lang.String uploadProtocol) { + return (LookupEntity) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product} + * logicalProducts/{logical_product}/variants/{variant} productSuites/{product_suite} + */ + @com.google.api.client.util.Key + private java.lang.String lookupUri; + + /** Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product} + logicalProducts/{logical_product}/variants/{variant} productSuites/{product_suite} + */ + public java.lang.String getLookupUri() { + return lookupUri; + } + + /** + * Required. Entity uri to look up. Supported Formats: logicalProducts/{logical_product} + * logicalProducts/{logical_product}/variants/{variant} productSuites/{product_suite} + */ + public LookupEntity setLookupUri(java.lang.String lookupUri) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LOOKUP_URI_PATTERN.matcher(lookupUri).matches(), + "Parameter lookupUri must conform to the pattern " + + "^productSuites/[^/]+$"); + } + this.lookupUri = lookupUri; + return this; + } + + @Override + public LookupEntity set(String parameterName, Object value) { + return (LookupEntity) super.set(parameterName, value); + } + } + + } + + /** + * Builder for {@link CloudProductRegistry}. + * + *

+ * Implementation is not thread-safe. + *

+ * + * @since 1.3.0 + */ + public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { + + private static String chooseEndpoint(com.google.api.client.http.HttpTransport transport) { + // If the GOOGLE_API_USE_MTLS_ENDPOINT environment variable value is "always", use mTLS endpoint. + // If the env variable is "auto", use mTLS endpoint if and only if the transport is mTLS. + // Use the regular endpoint for all other cases. + String useMtlsEndpoint = System.getenv("GOOGLE_API_USE_MTLS_ENDPOINT"); + useMtlsEndpoint = useMtlsEndpoint == null ? "auto" : useMtlsEndpoint; + if ("always".equals(useMtlsEndpoint) || ("auto".equals(useMtlsEndpoint) && transport != null && transport.isMtls())) { + return DEFAULT_MTLS_ROOT_URL; + } + return DEFAULT_ROOT_URL; + } + + /** + * Returns an instance of a new builder. + * + * @param transport HTTP transport, which should normally be: + *
    + *
  • Google App Engine: + * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • + *
  • Android: {@code newCompatibleTransport} from + * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • + *
+ * @param jsonFactory JSON factory, which may be: + *
    + *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • + *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • + *
  • Android Honeycomb or higher: + * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • + *
+ * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + super( + transport, + jsonFactory, + Builder.chooseEndpoint(transport), + DEFAULT_SERVICE_PATH, + httpRequestInitializer, + false); + setBatchPath(DEFAULT_BATCH_PATH); + } + + /** Builds a new instance of {@link CloudProductRegistry}. */ + @Override + public CloudProductRegistry build() { + return new CloudProductRegistry(this); + } + + @Override + public Builder setRootUrl(String rootUrl) { + return (Builder) super.setRootUrl(rootUrl); + } + + @Override + public Builder setServicePath(String servicePath) { + return (Builder) super.setServicePath(servicePath); + } + + @Override + public Builder setBatchPath(String batchPath) { + return (Builder) super.setBatchPath(batchPath); + } + + @Override + public Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + return (Builder) super.setHttpRequestInitializer(httpRequestInitializer); + } + + @Override + public Builder setApplicationName(String applicationName) { + return (Builder) super.setApplicationName(applicationName); + } + + @Override + public Builder setSuppressPatternChecks(boolean suppressPatternChecks) { + return (Builder) super.setSuppressPatternChecks(suppressPatternChecks); + } + + @Override + public Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) { + return (Builder) super.setSuppressRequiredParameterChecks(suppressRequiredParameterChecks); + } + + @Override + public Builder setSuppressAllChecks(boolean suppressAllChecks) { + return (Builder) super.setSuppressAllChecks(suppressAllChecks); + } + + /** + * Set the {@link CloudProductRegistryRequestInitializer}. + * + * @since 1.12 + */ + public Builder setCloudProductRegistryRequestInitializer( + CloudProductRegistryRequestInitializer cloudproductregistryRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(cloudproductregistryRequestInitializer); + } + + @Override + public Builder setGoogleClientRequestInitializer( + com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer); + } + + @Override + public Builder setUniverseDomain(String universeDomain) { + return (Builder) super.setUniverseDomain(universeDomain); + } + } +} diff --git a/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/CloudProductRegistryRequest.java b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/CloudProductRegistryRequest.java new file mode 100644 index 00000000000..0c1431bcd7e --- /dev/null +++ b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/CloudProductRegistryRequest.java @@ -0,0 +1,267 @@ +/* + * 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.cloudproductregistry.v1; + +/** + * CloudProductRegistry request. + * + * @since 1.3 + */ +@SuppressWarnings("javadoc") +public abstract class CloudProductRegistryRequest extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest { + + /** + * @param client Google client + * @param method HTTP Method + * @param uriTemplate URI template for the path relative to the base URL. If it starts with a "/" + * the base path from the base URL will be stripped out. The URI template can also be a + * full URL. URI template expansion is done using + * {@link com.google.api.client.http.UriTemplate#expand(String, String, Object, boolean)} + * @param content A POJO that can be serialized into JSON or {@code null} for none + * @param responseClass response class to parse into + */ + public CloudProductRegistryRequest( + CloudProductRegistry client, String method, String uriTemplate, Object content, Class responseClass) { + super( + client, + method, + uriTemplate, + content, + responseClass); + } + + /** V1 error format. */ + @com.google.api.client.util.Key("$.xgafv") + private java.lang.String $Xgafv; + + /** + * V1 error format. + */ + public java.lang.String get$Xgafv() { + return $Xgafv; + } + + /** V1 error format. */ + public CloudProductRegistryRequest set$Xgafv(java.lang.String $Xgafv) { + this.$Xgafv = $Xgafv; + return this; + } + + /** OAuth access token. */ + @com.google.api.client.util.Key("access_token") + private java.lang.String accessToken; + + /** + * OAuth access token. + */ + public java.lang.String getAccessToken() { + return accessToken; + } + + /** OAuth access token. */ + public CloudProductRegistryRequest setAccessToken(java.lang.String accessToken) { + this.accessToken = accessToken; + return this; + } + + /** Data format for response. */ + @com.google.api.client.util.Key + private java.lang.String alt; + + /** + * Data format for response. [default: json] + */ + public java.lang.String getAlt() { + return alt; + } + + /** Data format for response. */ + public CloudProductRegistryRequest setAlt(java.lang.String alt) { + this.alt = alt; + return this; + } + + /** JSONP */ + @com.google.api.client.util.Key + private java.lang.String callback; + + /** + * JSONP + */ + public java.lang.String getCallback() { + return callback; + } + + /** JSONP */ + public CloudProductRegistryRequest setCallback(java.lang.String callback) { + this.callback = callback; + return this; + } + + /** Selector specifying which fields to include in a partial response. */ + @com.google.api.client.util.Key + private java.lang.String fields; + + /** + * Selector specifying which fields to include in a partial response. + */ + public java.lang.String getFields() { + return fields; + } + + /** Selector specifying which fields to include in a partial response. */ + public CloudProductRegistryRequest setFields(java.lang.String fields) { + this.fields = fields; + return this; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public java.lang.String getKey() { + return key; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public CloudProductRegistryRequest setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** OAuth 2.0 token for the current user. */ + @com.google.api.client.util.Key("oauth_token") + private java.lang.String oauthToken; + + /** + * OAuth 2.0 token for the current user. + */ + public java.lang.String getOauthToken() { + return oauthToken; + } + + /** OAuth 2.0 token for the current user. */ + public CloudProductRegistryRequest setOauthToken(java.lang.String oauthToken) { + this.oauthToken = oauthToken; + return this; + } + + /** Returns response with indentations and line breaks. */ + @com.google.api.client.util.Key + private java.lang.Boolean prettyPrint; + + /** + * Returns response with indentations and line breaks. [default: true] + */ + public java.lang.Boolean getPrettyPrint() { + return prettyPrint; + } + + /** Returns response with indentations and line breaks. */ + public CloudProductRegistryRequest setPrettyPrint(java.lang.Boolean prettyPrint) { + this.prettyPrint = prettyPrint; + return this; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + @com.google.api.client.util.Key + private java.lang.String quotaUser; + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public java.lang.String getQuotaUser() { + return quotaUser; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public CloudProductRegistryRequest setQuotaUser(java.lang.String quotaUser) { + this.quotaUser = quotaUser; + return this; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + @com.google.api.client.util.Key + private java.lang.String uploadType; + + /** + * Legacy upload protocol for media (e.g. "media", "multipart"). + */ + public java.lang.String getUploadType() { + return uploadType; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + public CloudProductRegistryRequest setUploadType(java.lang.String uploadType) { + this.uploadType = uploadType; + return this; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + @com.google.api.client.util.Key("upload_protocol") + private java.lang.String uploadProtocol; + + /** + * Upload protocol for media (e.g. "raw", "multipart"). + */ + public java.lang.String getUploadProtocol() { + return uploadProtocol; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + public CloudProductRegistryRequest setUploadProtocol(java.lang.String uploadProtocol) { + this.uploadProtocol = uploadProtocol; + return this; + } + + @Override + public final CloudProductRegistry getAbstractGoogleClient() { + return (CloudProductRegistry) super.getAbstractGoogleClient(); + } + + @Override + public CloudProductRegistryRequest setDisableGZipContent(boolean disableGZipContent) { + return (CloudProductRegistryRequest) super.setDisableGZipContent(disableGZipContent); + } + + @Override + public CloudProductRegistryRequest setRequestHeaders(com.google.api.client.http.HttpHeaders headers) { + return (CloudProductRegistryRequest) super.setRequestHeaders(headers); + } + + @Override + public CloudProductRegistryRequest set(String parameterName, Object value) { + return (CloudProductRegistryRequest) super.set(parameterName, value); + } +} diff --git a/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/CloudProductRegistryRequestInitializer.java b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/CloudProductRegistryRequestInitializer.java new file mode 100644 index 00000000000..47196c790e6 --- /dev/null +++ b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/CloudProductRegistryRequestInitializer.java @@ -0,0 +1,119 @@ +/* + * 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.cloudproductregistry.v1; + +/** + * CloudProductRegistry request initializer for setting properties like key and userIp. + * + *

+ * The simplest usage is to use it to set the key parameter: + *

+ * + *
+  public static final GoogleClientRequestInitializer KEY_INITIALIZER =
+      new CloudProductRegistryRequestInitializer(KEY);
+ * 
+ * + *

+ * There is also a constructor to set both the key and userIp parameters: + *

+ * + *
+  public static final GoogleClientRequestInitializer INITIALIZER =
+      new CloudProductRegistryRequestInitializer(KEY, USER_IP);
+ * 
+ * + *

+ * If you want to implement custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer extends CloudProductRegistryRequestInitializer {
+
+    {@literal @}Override
+    public void initializeCloudProductRegistryRequest(CloudProductRegistryRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Finally, to set the key and userIp parameters and insert custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer2 extends CloudProductRegistryRequestInitializer {
+
+    public MyKeyRequestInitializer() {
+      super(KEY, USER_IP);
+    }
+
+    {@literal @}Override
+    public void initializeCloudProductRegistryRequest(CloudProductRegistryRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Subclasses should be thread-safe. + *

+ * + * @since 1.12 + */ +public class CloudProductRegistryRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public CloudProductRegistryRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public CloudProductRegistryRequestInitializer(String key) { + super(key); + } + + /** + * @param key API key or {@code null} to leave it unchanged + * @param userIp user IP or {@code null} to leave it unchanged + */ + public CloudProductRegistryRequestInitializer(String key, String userIp) { + super(key, userIp); + } + + @Override + public final void initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest request) throws java.io.IOException { + super.initializeJsonRequest(request); + initializeCloudProductRegistryRequest((CloudProductRegistryRequest) request); + } + + /** + * Initializes CloudProductRegistry request. + * + *

+ * Default implementation does nothing. Called from + * {@link #initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest)}. + *

+ * + * @throws java.io.IOException I/O exception + */ + protected void initializeCloudProductRegistryRequest(CloudProductRegistryRequest request) throws java.io.IOException { + } +} diff --git a/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/ListLogicalProductVariantsResponse.java b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/ListLogicalProductVariantsResponse.java new file mode 100644 index 00000000000..d95b7aa9c8d --- /dev/null +++ b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/ListLogicalProductVariantsResponse.java @@ -0,0 +1,94 @@ +/* + * 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.cloudproductregistry.v1.model; + +/** + * Response message for ListLogicalProductVariants. + * + *

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 Cloud Product Registry 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 ListLogicalProductVariantsResponse extends com.google.api.client.json.GenericJson { + + /** + * Matched LogicalProductVariants + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List logicalProductVariants; + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Matched LogicalProductVariants + * @return value or {@code null} for none + */ + public java.util.List getLogicalProductVariants() { + return logicalProductVariants; + } + + /** + * Matched LogicalProductVariants + * @param logicalProductVariants logicalProductVariants or {@code null} for none + */ + public ListLogicalProductVariantsResponse setLogicalProductVariants(java.util.List logicalProductVariants) { + this.logicalProductVariants = logicalProductVariants; + return this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListLogicalProductVariantsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListLogicalProductVariantsResponse set(String fieldName, Object value) { + return (ListLogicalProductVariantsResponse) super.set(fieldName, value); + } + + @Override + public ListLogicalProductVariantsResponse clone() { + return (ListLogicalProductVariantsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/ListLogicalProductsResponse.java b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/ListLogicalProductsResponse.java new file mode 100644 index 00000000000..176f5d42aed --- /dev/null +++ b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/ListLogicalProductsResponse.java @@ -0,0 +1,94 @@ +/* + * 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.cloudproductregistry.v1.model; + +/** + * Response message for ListLogicalProducts. + * + *

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 Cloud Product Registry 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 ListLogicalProductsResponse extends com.google.api.client.json.GenericJson { + + /** + * Matched LogicalProducts + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List logicalProducts; + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Matched LogicalProducts + * @return value or {@code null} for none + */ + public java.util.List getLogicalProducts() { + return logicalProducts; + } + + /** + * Matched LogicalProducts + * @param logicalProducts logicalProducts or {@code null} for none + */ + public ListLogicalProductsResponse setLogicalProducts(java.util.List logicalProducts) { + this.logicalProducts = logicalProducts; + return this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListLogicalProductsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListLogicalProductsResponse set(String fieldName, Object value) { + return (ListLogicalProductsResponse) super.set(fieldName, value); + } + + @Override + public ListLogicalProductsResponse clone() { + return (ListLogicalProductsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/ListProductSuitesResponse.java b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/ListProductSuitesResponse.java new file mode 100644 index 00000000000..e0f56636c6c --- /dev/null +++ b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/ListProductSuitesResponse.java @@ -0,0 +1,94 @@ +/* + * 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.cloudproductregistry.v1.model; + +/** + * Response message for ListProductSuites. + * + *

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 Cloud Product Registry 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 ListProductSuitesResponse extends com.google.api.client.json.GenericJson { + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Matched ProductSuites + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List productSuites; + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListProductSuitesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Matched ProductSuites + * @return value or {@code null} for none + */ + public java.util.List getProductSuites() { + return productSuites; + } + + /** + * Matched ProductSuites + * @param productSuites productSuites or {@code null} for none + */ + public ListProductSuitesResponse setProductSuites(java.util.List productSuites) { + this.productSuites = productSuites; + return this; + } + + @Override + public ListProductSuitesResponse set(String fieldName, Object value) { + return (ListProductSuitesResponse) super.set(fieldName, value); + } + + @Override + public ListProductSuitesResponse clone() { + return (ListProductSuitesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/LogicalProduct.java b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/LogicalProduct.java new file mode 100644 index 00000000000..0e1fe9f9a2e --- /dev/null +++ b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/LogicalProduct.java @@ -0,0 +1,226 @@ +/* + * 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.cloudproductregistry.v1.model; + +/** + * Represents an independent service offering that can be provisioned by a customer. + * + *

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 Cloud Product Registry 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 LogicalProduct extends com.google.api.client.json.GenericJson { + + /** + * Output only. Current Lifecycle state of the logical product. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lifecycleState; + + /** + * Identifier. The resource name of the LogicalProduct. Format: logicalProducts/{logical_product}. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Product suite associated with the logical product. Format: productSuites/{product_suite}. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String productSuite; + + /** + * Output only. Indicates whether the logical product has been replaced. If `false`, the product + * is active. If `true`, the product has been replaced by another type, and the `replacement` + * field contains the resource name of that replacement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean replaced; + + /** + * Output only. The resource name of the Logical Entity that the logical product is replaced by. + * This field is only populated when this logical product is replaced by some other type. Eg: + * logicalProducts/{logical_product}/variants/{variant}, productSuites/{product_suite}, etc. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String replacement; + + /** + * Display name of the LogicalProduct. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Output only. Child variant resource references. Format: + * logicalProducts/{logical_product}/variants/{variant} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List variants; + + /** + * Output only. Current Lifecycle state of the logical product. + * @return value or {@code null} for none + */ + public java.lang.String getLifecycleState() { + return lifecycleState; + } + + /** + * Output only. Current Lifecycle state of the logical product. + * @param lifecycleState lifecycleState or {@code null} for none + */ + public LogicalProduct setLifecycleState(java.lang.String lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * Identifier. The resource name of the LogicalProduct. Format: logicalProducts/{logical_product}. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the LogicalProduct. Format: logicalProducts/{logical_product}. + * @param name name or {@code null} for none + */ + public LogicalProduct setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Product suite associated with the logical product. Format: productSuites/{product_suite}. + * @return value or {@code null} for none + */ + public java.lang.String getProductSuite() { + return productSuite; + } + + /** + * Product suite associated with the logical product. Format: productSuites/{product_suite}. + * @param productSuite productSuite or {@code null} for none + */ + public LogicalProduct setProductSuite(java.lang.String productSuite) { + this.productSuite = productSuite; + return this; + } + + /** + * Output only. Indicates whether the logical product has been replaced. If `false`, the product + * is active. If `true`, the product has been replaced by another type, and the `replacement` + * field contains the resource name of that replacement. + * @return value or {@code null} for none + */ + public java.lang.Boolean getReplaced() { + return replaced; + } + + /** + * Output only. Indicates whether the logical product has been replaced. If `false`, the product + * is active. If `true`, the product has been replaced by another type, and the `replacement` + * field contains the resource name of that replacement. + * @param replaced replaced or {@code null} for none + */ + public LogicalProduct setReplaced(java.lang.Boolean replaced) { + this.replaced = replaced; + return this; + } + + /** + * Output only. The resource name of the Logical Entity that the logical product is replaced by. + * This field is only populated when this logical product is replaced by some other type. Eg: + * logicalProducts/{logical_product}/variants/{variant}, productSuites/{product_suite}, etc. + * @return value or {@code null} for none + */ + public java.lang.String getReplacement() { + return replacement; + } + + /** + * Output only. The resource name of the Logical Entity that the logical product is replaced by. + * This field is only populated when this logical product is replaced by some other type. Eg: + * logicalProducts/{logical_product}/variants/{variant}, productSuites/{product_suite}, etc. + * @param replacement replacement or {@code null} for none + */ + public LogicalProduct setReplacement(java.lang.String replacement) { + this.replacement = replacement; + return this; + } + + /** + * Display name of the LogicalProduct. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Display name of the LogicalProduct. + * @param title title or {@code null} for none + */ + public LogicalProduct setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * Output only. Child variant resource references. Format: + * logicalProducts/{logical_product}/variants/{variant} + * @return value or {@code null} for none + */ + public java.util.List getVariants() { + return variants; + } + + /** + * Output only. Child variant resource references. Format: + * logicalProducts/{logical_product}/variants/{variant} + * @param variants variants or {@code null} for none + */ + public LogicalProduct setVariants(java.util.List variants) { + this.variants = variants; + return this; + } + + @Override + public LogicalProduct set(String fieldName, Object value) { + return (LogicalProduct) super.set(fieldName, value); + } + + @Override + public LogicalProduct clone() { + return (LogicalProduct) super.clone(); + } + +} diff --git a/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/LogicalProductVariant.java b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/LogicalProductVariant.java new file mode 100644 index 00000000000..4e6783cf40b --- /dev/null +++ b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/LogicalProductVariant.java @@ -0,0 +1,179 @@ +/* + * 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.cloudproductregistry.v1.model; + +/** + * Represents a distinct offering derived from a primary product that retains core functionalities + * but offers specialized features for a specific market segment. + * + *

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 Cloud Product Registry 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 LogicalProductVariant extends com.google.api.client.json.GenericJson { + + /** + * Output only. Current Lifecycle state of the logical product variant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lifecycleState; + + /** + * Identifier. The resource name of the LogicalProductVariant. Format: + * logicalProducts/{logical_product}/variants/{variant} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Indicates whether the logical product variant has been replaced. If `false`, the + * variant is active. If `true`, the variant has been replaced by another type, and the + * `replacement` field contains the resource name of that replacement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean replaced; + + /** + * Output only. The resource name of the Logical Entity that the logical product variant is + * replaced by. This field is only populated when this logical product variant is replaced by some + * other type. Eg: logicalProducts/{logical_product}, productSuites/{product_suite}, etc. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String replacement; + + /** + * Display name of the LogicalProductVariant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Output only. Current Lifecycle state of the logical product variant. + * @return value or {@code null} for none + */ + public java.lang.String getLifecycleState() { + return lifecycleState; + } + + /** + * Output only. Current Lifecycle state of the logical product variant. + * @param lifecycleState lifecycleState or {@code null} for none + */ + public LogicalProductVariant setLifecycleState(java.lang.String lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * Identifier. The resource name of the LogicalProductVariant. Format: + * logicalProducts/{logical_product}/variants/{variant} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the LogicalProductVariant. Format: + * logicalProducts/{logical_product}/variants/{variant} + * @param name name or {@code null} for none + */ + public LogicalProductVariant setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Indicates whether the logical product variant has been replaced. If `false`, the + * variant is active. If `true`, the variant has been replaced by another type, and the + * `replacement` field contains the resource name of that replacement. + * @return value or {@code null} for none + */ + public java.lang.Boolean getReplaced() { + return replaced; + } + + /** + * Output only. Indicates whether the logical product variant has been replaced. If `false`, the + * variant is active. If `true`, the variant has been replaced by another type, and the + * `replacement` field contains the resource name of that replacement. + * @param replaced replaced or {@code null} for none + */ + public LogicalProductVariant setReplaced(java.lang.Boolean replaced) { + this.replaced = replaced; + return this; + } + + /** + * Output only. The resource name of the Logical Entity that the logical product variant is + * replaced by. This field is only populated when this logical product variant is replaced by some + * other type. Eg: logicalProducts/{logical_product}, productSuites/{product_suite}, etc. + * @return value or {@code null} for none + */ + public java.lang.String getReplacement() { + return replacement; + } + + /** + * Output only. The resource name of the Logical Entity that the logical product variant is + * replaced by. This field is only populated when this logical product variant is replaced by some + * other type. Eg: logicalProducts/{logical_product}, productSuites/{product_suite}, etc. + * @param replacement replacement or {@code null} for none + */ + public LogicalProductVariant setReplacement(java.lang.String replacement) { + this.replacement = replacement; + return this; + } + + /** + * Display name of the LogicalProductVariant. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Display name of the LogicalProductVariant. + * @param title title or {@code null} for none + */ + public LogicalProductVariant setTitle(java.lang.String title) { + this.title = title; + return this; + } + + @Override + public LogicalProductVariant set(String fieldName, Object value) { + return (LogicalProductVariant) super.set(fieldName, value); + } + + @Override + public LogicalProductVariant clone() { + return (LogicalProductVariant) super.clone(); + } + +} diff --git a/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/LookupEntityResponse.java b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/LookupEntityResponse.java new file mode 100644 index 00000000000..22a9debc7e0 --- /dev/null +++ b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/LookupEntityResponse.java @@ -0,0 +1,115 @@ +/* + * 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.cloudproductregistry.v1.model; + +/** + * Response message for LookupEntity. + * + *

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 Cloud Product Registry 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 LookupEntityResponse extends com.google.api.client.json.GenericJson { + + /** + * Matched LogicalProduct. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LogicalProduct logicalProduct; + + /** + * Matched LogicalProductVariant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LogicalProductVariant logicalProductVariant; + + /** + * Matched ProductSuite. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ProductSuite productSuite; + + /** + * Matched LogicalProduct. + * @return value or {@code null} for none + */ + public LogicalProduct getLogicalProduct() { + return logicalProduct; + } + + /** + * Matched LogicalProduct. + * @param logicalProduct logicalProduct or {@code null} for none + */ + public LookupEntityResponse setLogicalProduct(LogicalProduct logicalProduct) { + this.logicalProduct = logicalProduct; + return this; + } + + /** + * Matched LogicalProductVariant. + * @return value or {@code null} for none + */ + public LogicalProductVariant getLogicalProductVariant() { + return logicalProductVariant; + } + + /** + * Matched LogicalProductVariant. + * @param logicalProductVariant logicalProductVariant or {@code null} for none + */ + public LookupEntityResponse setLogicalProductVariant(LogicalProductVariant logicalProductVariant) { + this.logicalProductVariant = logicalProductVariant; + return this; + } + + /** + * Matched ProductSuite. + * @return value or {@code null} for none + */ + public ProductSuite getProductSuite() { + return productSuite; + } + + /** + * Matched ProductSuite. + * @param productSuite productSuite or {@code null} for none + */ + public LookupEntityResponse setProductSuite(ProductSuite productSuite) { + this.productSuite = productSuite; + return this; + } + + @Override + public LookupEntityResponse set(String fieldName, Object value) { + return (LookupEntityResponse) super.set(fieldName, value); + } + + @Override + public LookupEntityResponse clone() { + return (LookupEntityResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/ProductSuite.java b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/ProductSuite.java new file mode 100644 index 00000000000..797183e8c39 --- /dev/null +++ b/clients/google-api-services-cloudproductregistry/v1/2.0.0/com/google/api/services/cloudproductregistry/v1/model/ProductSuite.java @@ -0,0 +1,175 @@ +/* + * 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.cloudproductregistry.v1.model; + +/** + * Represents a unified grouping of products sharing a common brand and market positioning. + * + *

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 Cloud Product Registry 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 ProductSuite extends com.google.api.client.json.GenericJson { + + /** + * Output only. LogicalProducts under this suite. Format: logicalProducts/{logical_product} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List logicalProducts; + + /** + * Identifier. The resource name of the ProductSuite. Format: productSuites/{product_suite} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Indicates whether the product suite has been replaced. If `false`, the product + * suite is active. If `true`, the product suite has been replaced by another type, and the + * `replacement` field contains the resource name of that replacement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean replaced; + + /** + * Output only. The resource name of the Logical Entity that the product suite is replaced by. + * This field is only populated when this product suite is replaced by some other type. Eg: + * logicalProducts/{logical_product}, logicalProducts/{logical_product}/variants/{variant}, etc. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String replacement; + + /** + * Title of the ProductSuite. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Output only. LogicalProducts under this suite. Format: logicalProducts/{logical_product} + * @return value or {@code null} for none + */ + public java.util.List getLogicalProducts() { + return logicalProducts; + } + + /** + * Output only. LogicalProducts under this suite. Format: logicalProducts/{logical_product} + * @param logicalProducts logicalProducts or {@code null} for none + */ + public ProductSuite setLogicalProducts(java.util.List logicalProducts) { + this.logicalProducts = logicalProducts; + return this; + } + + /** + * Identifier. The resource name of the ProductSuite. Format: productSuites/{product_suite} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the ProductSuite. Format: productSuites/{product_suite} + * @param name name or {@code null} for none + */ + public ProductSuite setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Indicates whether the product suite has been replaced. If `false`, the product + * suite is active. If `true`, the product suite has been replaced by another type, and the + * `replacement` field contains the resource name of that replacement. + * @return value or {@code null} for none + */ + public java.lang.Boolean getReplaced() { + return replaced; + } + + /** + * Output only. Indicates whether the product suite has been replaced. If `false`, the product + * suite is active. If `true`, the product suite has been replaced by another type, and the + * `replacement` field contains the resource name of that replacement. + * @param replaced replaced or {@code null} for none + */ + public ProductSuite setReplaced(java.lang.Boolean replaced) { + this.replaced = replaced; + return this; + } + + /** + * Output only. The resource name of the Logical Entity that the product suite is replaced by. + * This field is only populated when this product suite is replaced by some other type. Eg: + * logicalProducts/{logical_product}, logicalProducts/{logical_product}/variants/{variant}, etc. + * @return value or {@code null} for none + */ + public java.lang.String getReplacement() { + return replacement; + } + + /** + * Output only. The resource name of the Logical Entity that the product suite is replaced by. + * This field is only populated when this product suite is replaced by some other type. Eg: + * logicalProducts/{logical_product}, logicalProducts/{logical_product}/variants/{variant}, etc. + * @param replacement replacement or {@code null} for none + */ + public ProductSuite setReplacement(java.lang.String replacement) { + this.replacement = replacement; + return this; + } + + /** + * Title of the ProductSuite. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Title of the ProductSuite. + * @param title title or {@code null} for none + */ + public ProductSuite setTitle(java.lang.String title) { + this.title = title; + return this; + } + + @Override + public ProductSuite set(String fieldName, Object value) { + return (ProductSuite) super.set(fieldName, value); + } + + @Override + public ProductSuite clone() { + return (ProductSuite) super.clone(); + } + +} diff --git a/clients/google-api-services-cloudproductregistry/v1/2.0.0/pom.xml b/clients/google-api-services-cloudproductregistry/v1/2.0.0/pom.xml new file mode 100644 index 00000000000..4413898dc92 --- /dev/null +++ b/clients/google-api-services-cloudproductregistry/v1/2.0.0/pom.xml @@ -0,0 +1,219 @@ + + 4.0.0 + + org.sonatype.oss + oss-parent + 7 + + + com.google.apis + google-api-services-cloudproductregistry + v1-rev20260611-2.0.0 + Cloud Product Registry API v1-rev20260611-2.0.0 + jar + + 2011 + + + + GoogleAPIs + GoogleAPIs + googleapis@googlegroups.com + Google + https://www.google.com + + + + + Google + http://www.google.com/ + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + + ossrh + https://google.oss.sonatype.org/content/repositories/snapshots + + + + + + + maven-compiler-plugin + 3.9.0 + + 1.7 + 1.7 + + + + org.apache.maven.plugins + maven-source-plugin + 2.4 + + + org.apache.maven.plugins + maven-jar-plugin + 3.1.2 + + + + com.google.api.services.cloudproductregistry + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + + attach-javadocs + + jar + + + + + none + Cloud Product Registry API ${project.version} + Cloud Product Registry API ${project.version} + + http://docs.oracle.com/javase/7/docs/api + https://googleapis.dev/java/google-http-client/${httpClientLibrary}/ + https://googleapis.dev/java/google-oauth-client/${oauthClientLibrary}/ + https://googleapis.dev/java/google-api-client/2.7.2/ + + + + + org.codehaus.mojo + clirr-maven-plugin + 2.8 + + clirr-ignored-differences.xml + true + + + + + check + + + + + + . + + + ./resources + + + + + + + com.google.api-client + google-api-client + 2.7.2 + + + + + UTF-8 + + + + + + release-sonatype + + + + !artifact-registry-url + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + sonatype-nexus-staging + https://google.oss.sonatype.org/ + false + + + + + + + + release-gcp-artifact-registry + + artifactregistry://please-define-artifact-registry-url-property + + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + + + release-sign-artifacts + + + performRelease + true + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.7 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + + + \ No newline at end of file diff --git a/clients/google-api-services-cloudproductregistry/v1/README.md b/clients/google-api-services-cloudproductregistry/v1/README.md new file mode 100644 index 00000000000..f1745806ceb --- /dev/null +++ b/clients/google-api-services-cloudproductregistry/v1/README.md @@ -0,0 +1,44 @@ +# Cloud Product Registry API Client Library for Java + +cloudproductregistry.googleapis.com API. + +This page contains information about getting started with the Cloud Product Registry API +using the Google API Client Library for Java. In addition, you may be interested +in the following documentation: + +* Browse the [Javadoc reference for the Cloud Product Registry API][javadoc] +* Read the [Developer's Guide for the Google API Client Library for Java][google-api-client]. +* Interact with this API in your browser using the [APIs Explorer for the Cloud Product Registry API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-cloudproductregistry + v1-rev20260611-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-cloudproductregistry:v1-rev20260611-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-cloudproductregistry/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/cloudproductregistry/v1/