• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2019 The Grafeas Authors. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 // Generated by the protocol buffer compiler.  DO NOT EDIT!
18 // source: grafeas/v1/package.proto
19 
20 package io.grafeas.v1;
21 
22 public interface PackageOccurrenceOrBuilder
23     extends
24     // @@protoc_insertion_point(interface_extends:grafeas.v1.PackageOccurrence)
25     com.google.protobuf.MessageOrBuilder {
26 
27   /**
28    *
29    *
30    * <pre>
31    * The name of the installed package.
32    * </pre>
33    *
34    * <code>
35    * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];
36    * </code>
37    *
38    * @return The name.
39    */
getName()40   java.lang.String getName();
41   /**
42    *
43    *
44    * <pre>
45    * The name of the installed package.
46    * </pre>
47    *
48    * <code>
49    * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];
50    * </code>
51    *
52    * @return The bytes for name.
53    */
getNameBytes()54   com.google.protobuf.ByteString getNameBytes();
55 
56   /**
57    *
58    *
59    * <pre>
60    * All of the places within the filesystem versions of this package
61    * have been found.
62    * </pre>
63    *
64    * <code>repeated .grafeas.v1.Location location = 2;</code>
65    */
getLocationList()66   java.util.List<io.grafeas.v1.Location> getLocationList();
67   /**
68    *
69    *
70    * <pre>
71    * All of the places within the filesystem versions of this package
72    * have been found.
73    * </pre>
74    *
75    * <code>repeated .grafeas.v1.Location location = 2;</code>
76    */
getLocation(int index)77   io.grafeas.v1.Location getLocation(int index);
78   /**
79    *
80    *
81    * <pre>
82    * All of the places within the filesystem versions of this package
83    * have been found.
84    * </pre>
85    *
86    * <code>repeated .grafeas.v1.Location location = 2;</code>
87    */
getLocationCount()88   int getLocationCount();
89   /**
90    *
91    *
92    * <pre>
93    * All of the places within the filesystem versions of this package
94    * have been found.
95    * </pre>
96    *
97    * <code>repeated .grafeas.v1.Location location = 2;</code>
98    */
getLocationOrBuilderList()99   java.util.List<? extends io.grafeas.v1.LocationOrBuilder> getLocationOrBuilderList();
100   /**
101    *
102    *
103    * <pre>
104    * All of the places within the filesystem versions of this package
105    * have been found.
106    * </pre>
107    *
108    * <code>repeated .grafeas.v1.Location location = 2;</code>
109    */
getLocationOrBuilder(int index)110   io.grafeas.v1.LocationOrBuilder getLocationOrBuilder(int index);
111 
112   /**
113    *
114    *
115    * <pre>
116    * The type of package; whether native or non native (e.g., ruby gems,
117    * node.js packages, etc.).
118    * </pre>
119    *
120    * <code>string package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
121    *
122    * @return The packageType.
123    */
getPackageType()124   java.lang.String getPackageType();
125   /**
126    *
127    *
128    * <pre>
129    * The type of package; whether native or non native (e.g., ruby gems,
130    * node.js packages, etc.).
131    * </pre>
132    *
133    * <code>string package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
134    *
135    * @return The bytes for packageType.
136    */
getPackageTypeBytes()137   com.google.protobuf.ByteString getPackageTypeBytes();
138 
139   /**
140    *
141    *
142    * <pre>
143    * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
144    * denoting the package manager version distributing a package.
145    * The cpe_uri will be blank for language packages.
146    * </pre>
147    *
148    * <code>string cpe_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
149    *
150    * @return The cpeUri.
151    */
getCpeUri()152   java.lang.String getCpeUri();
153   /**
154    *
155    *
156    * <pre>
157    * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
158    * denoting the package manager version distributing a package.
159    * The cpe_uri will be blank for language packages.
160    * </pre>
161    *
162    * <code>string cpe_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
163    *
164    * @return The bytes for cpeUri.
165    */
getCpeUriBytes()166   com.google.protobuf.ByteString getCpeUriBytes();
167 
168   /**
169    *
170    *
171    * <pre>
172    * The CPU architecture for which packages in this distribution channel were
173    * built. Architecture will be blank for language packages.
174    * </pre>
175    *
176    * <code>.grafeas.v1.Architecture architecture = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
177    * </code>
178    *
179    * @return The enum numeric value on the wire for architecture.
180    */
getArchitectureValue()181   int getArchitectureValue();
182   /**
183    *
184    *
185    * <pre>
186    * The CPU architecture for which packages in this distribution channel were
187    * built. Architecture will be blank for language packages.
188    * </pre>
189    *
190    * <code>.grafeas.v1.Architecture architecture = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
191    * </code>
192    *
193    * @return The architecture.
194    */
getArchitecture()195   io.grafeas.v1.Architecture getArchitecture();
196 
197   /**
198    *
199    *
200    * <pre>
201    * Licenses that have been declared by the authors of the package.
202    * </pre>
203    *
204    * <code>.grafeas.v1.License license = 6;</code>
205    *
206    * @return Whether the license field is set.
207    */
hasLicense()208   boolean hasLicense();
209   /**
210    *
211    *
212    * <pre>
213    * Licenses that have been declared by the authors of the package.
214    * </pre>
215    *
216    * <code>.grafeas.v1.License license = 6;</code>
217    *
218    * @return The license.
219    */
getLicense()220   io.grafeas.v1.License getLicense();
221   /**
222    *
223    *
224    * <pre>
225    * Licenses that have been declared by the authors of the package.
226    * </pre>
227    *
228    * <code>.grafeas.v1.License license = 6;</code>
229    */
getLicenseOrBuilder()230   io.grafeas.v1.LicenseOrBuilder getLicenseOrBuilder();
231 
232   /**
233    *
234    *
235    * <pre>
236    * The version of the package.
237    * </pre>
238    *
239    * <code>.grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
240    *
241    * @return Whether the version field is set.
242    */
hasVersion()243   boolean hasVersion();
244   /**
245    *
246    *
247    * <pre>
248    * The version of the package.
249    * </pre>
250    *
251    * <code>.grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
252    *
253    * @return The version.
254    */
getVersion()255   io.grafeas.v1.Version getVersion();
256   /**
257    *
258    *
259    * <pre>
260    * The version of the package.
261    * </pre>
262    *
263    * <code>.grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
264    */
getVersionOrBuilder()265   io.grafeas.v1.VersionOrBuilder getVersionOrBuilder();
266 }
267