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
+
+ * 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: + *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{@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{@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{@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{@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{@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{@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{@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{@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{@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: + *+ * 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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