All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.artifactregistry.v1.model.NpmPackage Maven / Gradle / Ivy

/*
 * 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.artifactregistry.v1.model;

/**
 * NpmPackage represents an npm artifact.
 *
 * 

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 Artifact 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 NpmPackage extends com.google.api.client.json.GenericJson { /** * Output only. Time the package was created. * The value may be {@code null}. */ @com.google.api.client.util.Key private String createTime; /** * Required. registry_location, project_id, repository_name and npm_package forms a unique package * For example, "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/ * npm_test:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, * "test-repo" is the repository_name and npm_test:1.0.0" is the npm package. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * Package for the artifact. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String packageName; /** * Tags attached to this package. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List tags; /** * Output only. Time the package was updated. * The value may be {@code null}. */ @com.google.api.client.util.Key private String updateTime; /** * Version of this package. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String version; /** * Output only. Time the package was created. * @return value or {@code null} for none */ public String getCreateTime() { return createTime; } /** * Output only. Time the package was created. * @param createTime createTime or {@code null} for none */ public NpmPackage setCreateTime(String createTime) { this.createTime = createTime; return this; } /** * Required. registry_location, project_id, repository_name and npm_package forms a unique package * For example, "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/ * npm_test:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, * "test-repo" is the repository_name and npm_test:1.0.0" is the npm package. * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Required. registry_location, project_id, repository_name and npm_package forms a unique package * For example, "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/ * npm_test:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, * "test-repo" is the repository_name and npm_test:1.0.0" is the npm package. * @param name name or {@code null} for none */ public NpmPackage setName(java.lang.String name) { this.name = name; return this; } /** * Package for the artifact. * @return value or {@code null} for none */ public java.lang.String getPackageName() { return packageName; } /** * Package for the artifact. * @param packageName packageName or {@code null} for none */ public NpmPackage setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } /** * Tags attached to this package. * @return value or {@code null} for none */ public java.util.List getTags() { return tags; } /** * Tags attached to this package. * @param tags tags or {@code null} for none */ public NpmPackage setTags(java.util.List tags) { this.tags = tags; return this; } /** * Output only. Time the package was updated. * @return value or {@code null} for none */ public String getUpdateTime() { return updateTime; } /** * Output only. Time the package was updated. * @param updateTime updateTime or {@code null} for none */ public NpmPackage setUpdateTime(String updateTime) { this.updateTime = updateTime; return this; } /** * Version of this package. * @return value or {@code null} for none */ public java.lang.String getVersion() { return version; } /** * Version of this package. * @param version version or {@code null} for none */ public NpmPackage setVersion(java.lang.String version) { this.version = version; return this; } @Override public NpmPackage set(String fieldName, Object value) { return (NpmPackage) super.set(fieldName, value); } @Override public NpmPackage clone() { return (NpmPackage) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy