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

com.google.api.services.containeranalysis.v1.model.PackageOccurrence Maven / Gradle / Ivy

There is a newer version: v1-rev20250307-2.0.0
Show newest version
/*
 * 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.containeranalysis.v1.model;

/**
 * Details on how a particular software package was installed on a system.
 *
 * 

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 Container Analysis 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 PackageOccurrence extends com.google.api.client.json.GenericJson { /** * Output only. The CPU architecture for which packages in this distribution channel were built. * Architecture will be blank for language packages. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String architecture; /** * Output only. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the * package manager version distributing a package. The cpe_uri will be blank for language * packages. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String cpeUri; /** * Licenses that have been declared by the authors of the package. * The value may be {@code null}. */ @com.google.api.client.util.Key private License license; /** * All of the places within the filesystem versions of this package have been found. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List location; static { // hack to force ProGuard to consider Location used, since otherwise it would be stripped out // see https://github.com/google/google-api-java-client/issues/543 com.google.api.client.util.Data.nullOf(Location.class); } /** * Required. Output only. The name of the installed package. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * Output only. The type of package; whether native or non native (e.g., ruby gems, node.js * packages, etc.). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String packageType; /** * Output only. The version of the package. * The value may be {@code null}. */ @com.google.api.client.util.Key private Version version; /** * Output only. The CPU architecture for which packages in this distribution channel were built. * Architecture will be blank for language packages. * @return value or {@code null} for none */ public java.lang.String getArchitecture() { return architecture; } /** * Output only. The CPU architecture for which packages in this distribution channel were built. * Architecture will be blank for language packages. * @param architecture architecture or {@code null} for none */ public PackageOccurrence setArchitecture(java.lang.String architecture) { this.architecture = architecture; return this; } /** * Output only. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the * package manager version distributing a package. The cpe_uri will be blank for language * packages. * @return value or {@code null} for none */ public java.lang.String getCpeUri() { return cpeUri; } /** * Output only. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the * package manager version distributing a package. The cpe_uri will be blank for language * packages. * @param cpeUri cpeUri or {@code null} for none */ public PackageOccurrence setCpeUri(java.lang.String cpeUri) { this.cpeUri = cpeUri; return this; } /** * Licenses that have been declared by the authors of the package. * @return value or {@code null} for none */ public License getLicense() { return license; } /** * Licenses that have been declared by the authors of the package. * @param license license or {@code null} for none */ public PackageOccurrence setLicense(License license) { this.license = license; return this; } /** * All of the places within the filesystem versions of this package have been found. * @return value or {@code null} for none */ public java.util.List getLocation() { return location; } /** * All of the places within the filesystem versions of this package have been found. * @param location location or {@code null} for none */ public PackageOccurrence setLocation(java.util.List location) { this.location = location; return this; } /** * Required. Output only. The name of the installed package. * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Required. Output only. The name of the installed package. * @param name name or {@code null} for none */ public PackageOccurrence setName(java.lang.String name) { this.name = name; return this; } /** * Output only. The type of package; whether native or non native (e.g., ruby gems, node.js * packages, etc.). * @return value or {@code null} for none */ public java.lang.String getPackageType() { return packageType; } /** * Output only. The type of package; whether native or non native (e.g., ruby gems, node.js * packages, etc.). * @param packageType packageType or {@code null} for none */ public PackageOccurrence setPackageType(java.lang.String packageType) { this.packageType = packageType; return this; } /** * Output only. The version of the package. * @return value or {@code null} for none */ public Version getVersion() { return version; } /** * Output only. The version of the package. * @param version version or {@code null} for none */ public PackageOccurrence setVersion(Version version) { this.version = version; return this; } @Override public PackageOccurrence set(String fieldName, Object value) { return (PackageOccurrence) super.set(fieldName, value); } @Override public PackageOccurrence clone() { return (PackageOccurrence) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy