• 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/provenance.proto
19 
20 package io.grafeas.v1;
21 
22 public interface ArtifactOrBuilder
23     extends
24     // @@protoc_insertion_point(interface_extends:grafeas.v1.Artifact)
25     com.google.protobuf.MessageOrBuilder {
26 
27   /**
28    *
29    *
30    * <pre>
31    * Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
32    * container.
33    * </pre>
34    *
35    * <code>string checksum = 1;</code>
36    *
37    * @return The checksum.
38    */
getChecksum()39   java.lang.String getChecksum();
40   /**
41    *
42    *
43    * <pre>
44    * Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
45    * container.
46    * </pre>
47    *
48    * <code>string checksum = 1;</code>
49    *
50    * @return The bytes for checksum.
51    */
getChecksumBytes()52   com.google.protobuf.ByteString getChecksumBytes();
53 
54   /**
55    *
56    *
57    * <pre>
58    * Artifact ID, if any; for container images, this will be a URL by digest
59    * like `gcr.io/projectID/imagename&#64;sha256:123456`.
60    * </pre>
61    *
62    * <code>string id = 2;</code>
63    *
64    * @return The id.
65    */
getId()66   java.lang.String getId();
67   /**
68    *
69    *
70    * <pre>
71    * Artifact ID, if any; for container images, this will be a URL by digest
72    * like `gcr.io/projectID/imagename&#64;sha256:123456`.
73    * </pre>
74    *
75    * <code>string id = 2;</code>
76    *
77    * @return The bytes for id.
78    */
getIdBytes()79   com.google.protobuf.ByteString getIdBytes();
80 
81   /**
82    *
83    *
84    * <pre>
85    * Related artifact names. This may be the path to a binary or jar file, or in
86    * the case of a container build, the name used to push the container image to
87    * Google Container Registry, as presented to `docker push`. Note that a
88    * single Artifact ID can have multiple names, for example if two tags are
89    * applied to one image.
90    * </pre>
91    *
92    * <code>repeated string names = 3;</code>
93    *
94    * @return A list containing the names.
95    */
getNamesList()96   java.util.List<java.lang.String> getNamesList();
97   /**
98    *
99    *
100    * <pre>
101    * Related artifact names. This may be the path to a binary or jar file, or in
102    * the case of a container build, the name used to push the container image to
103    * Google Container Registry, as presented to `docker push`. Note that a
104    * single Artifact ID can have multiple names, for example if two tags are
105    * applied to one image.
106    * </pre>
107    *
108    * <code>repeated string names = 3;</code>
109    *
110    * @return The count of names.
111    */
getNamesCount()112   int getNamesCount();
113   /**
114    *
115    *
116    * <pre>
117    * Related artifact names. This may be the path to a binary or jar file, or in
118    * the case of a container build, the name used to push the container image to
119    * Google Container Registry, as presented to `docker push`. Note that a
120    * single Artifact ID can have multiple names, for example if two tags are
121    * applied to one image.
122    * </pre>
123    *
124    * <code>repeated string names = 3;</code>
125    *
126    * @param index The index of the element to return.
127    * @return The names at the given index.
128    */
getNames(int index)129   java.lang.String getNames(int index);
130   /**
131    *
132    *
133    * <pre>
134    * Related artifact names. This may be the path to a binary or jar file, or in
135    * the case of a container build, the name used to push the container image to
136    * Google Container Registry, as presented to `docker push`. Note that a
137    * single Artifact ID can have multiple names, for example if two tags are
138    * applied to one image.
139    * </pre>
140    *
141    * <code>repeated string names = 3;</code>
142    *
143    * @param index The index of the value to return.
144    * @return The bytes of the names at the given index.
145    */
getNamesBytes(int index)146   com.google.protobuf.ByteString getNamesBytes(int index);
147 }
148