• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
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 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/devtools/containeranalysis/v1beta1/grafeas/grafeas.proto
18 
19 package io.grafeas.v1beta1;
20 
21 public interface ResourceOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:grafeas.v1beta1.Resource)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * The name of the resource. For example, the name of a Docker image -
31    * "Debian".
32    * </pre>
33    *
34    * <code>string name = 1;</code>
35    *
36    * @return The name.
37    */
getName()38   java.lang.String getName();
39   /**
40    *
41    *
42    * <pre>
43    * The name of the resource. For example, the name of a Docker image -
44    * "Debian".
45    * </pre>
46    *
47    * <code>string name = 1;</code>
48    *
49    * @return The bytes for name.
50    */
getNameBytes()51   com.google.protobuf.ByteString getNameBytes();
52 
53   /**
54    *
55    *
56    * <pre>
57    * Required. The unique URI of the resource. For example,
58    * `https://gcr.io/project/image&#64;sha256:foo` for a Docker image.
59    * </pre>
60    *
61    * <code>string uri = 2;</code>
62    *
63    * @return The uri.
64    */
getUri()65   java.lang.String getUri();
66   /**
67    *
68    *
69    * <pre>
70    * Required. The unique URI of the resource. For example,
71    * `https://gcr.io/project/image&#64;sha256:foo` for a Docker image.
72    * </pre>
73    *
74    * <code>string uri = 2;</code>
75    *
76    * @return The bytes for uri.
77    */
getUriBytes()78   com.google.protobuf.ByteString getUriBytes();
79 
80   /**
81    *
82    *
83    * <pre>
84    * The hash of the resource content. For example, the Docker digest.
85    * </pre>
86    *
87    * <code>.grafeas.v1beta1.provenance.Hash content_hash = 3;</code>
88    *
89    * @return Whether the contentHash field is set.
90    */
hasContentHash()91   boolean hasContentHash();
92   /**
93    *
94    *
95    * <pre>
96    * The hash of the resource content. For example, the Docker digest.
97    * </pre>
98    *
99    * <code>.grafeas.v1beta1.provenance.Hash content_hash = 3;</code>
100    *
101    * @return The contentHash.
102    */
getContentHash()103   io.grafeas.v1beta1.provenance.Hash getContentHash();
104   /**
105    *
106    *
107    * <pre>
108    * The hash of the resource content. For example, the Docker digest.
109    * </pre>
110    *
111    * <code>.grafeas.v1beta1.provenance.Hash content_hash = 3;</code>
112    */
getContentHashOrBuilder()113   io.grafeas.v1beta1.provenance.HashOrBuilder getContentHashOrBuilder();
114 }
115