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/image.proto 19 20 package io.grafeas.v1; 21 22 public interface FingerprintOrBuilder 23 extends 24 // @@protoc_insertion_point(interface_extends:grafeas.v1.Fingerprint) 25 com.google.protobuf.MessageOrBuilder { 26 27 /** 28 * 29 * 30 * <pre> 31 * Required. The layer ID of the final layer in the Docker image's v1 32 * representation. 33 * </pre> 34 * 35 * <code>string v1_name = 1;</code> 36 * 37 * @return The v1Name. 38 */ getV1Name()39 java.lang.String getV1Name(); 40 /** 41 * 42 * 43 * <pre> 44 * Required. The layer ID of the final layer in the Docker image's v1 45 * representation. 46 * </pre> 47 * 48 * <code>string v1_name = 1;</code> 49 * 50 * @return The bytes for v1Name. 51 */ getV1NameBytes()52 com.google.protobuf.ByteString getV1NameBytes(); 53 54 /** 55 * 56 * 57 * <pre> 58 * Required. The ordered list of v2 blobs that represent a given image. 59 * </pre> 60 * 61 * <code>repeated string v2_blob = 2;</code> 62 * 63 * @return A list containing the v2Blob. 64 */ getV2BlobList()65 java.util.List<java.lang.String> getV2BlobList(); 66 /** 67 * 68 * 69 * <pre> 70 * Required. The ordered list of v2 blobs that represent a given image. 71 * </pre> 72 * 73 * <code>repeated string v2_blob = 2;</code> 74 * 75 * @return The count of v2Blob. 76 */ getV2BlobCount()77 int getV2BlobCount(); 78 /** 79 * 80 * 81 * <pre> 82 * Required. The ordered list of v2 blobs that represent a given image. 83 * </pre> 84 * 85 * <code>repeated string v2_blob = 2;</code> 86 * 87 * @param index The index of the element to return. 88 * @return The v2Blob at the given index. 89 */ getV2Blob(int index)90 java.lang.String getV2Blob(int index); 91 /** 92 * 93 * 94 * <pre> 95 * Required. The ordered list of v2 blobs that represent a given image. 96 * </pre> 97 * 98 * <code>repeated string v2_blob = 2;</code> 99 * 100 * @param index The index of the value to return. 101 * @return The bytes of the v2Blob at the given index. 102 */ getV2BlobBytes(int index)103 com.google.protobuf.ByteString getV2BlobBytes(int index); 104 105 /** 106 * 107 * 108 * <pre> 109 * Output only. The name of the image's v2 blobs computed via: 110 * [bottom] := v2_blob[bottom] 111 * [N] := sha256(v2_blob[N] + " " + v2_name[N+1]) 112 * Only the name of the final blob is kept. 113 * </pre> 114 * 115 * <code>string v2_name = 3;</code> 116 * 117 * @return The v2Name. 118 */ getV2Name()119 java.lang.String getV2Name(); 120 /** 121 * 122 * 123 * <pre> 124 * Output only. The name of the image's v2 blobs computed via: 125 * [bottom] := v2_blob[bottom] 126 * [N] := sha256(v2_blob[N] + " " + v2_name[N+1]) 127 * Only the name of the final blob is kept. 128 * </pre> 129 * 130 * <code>string v2_name = 3;</code> 131 * 132 * @return The bytes for v2Name. 133 */ getV2NameBytes()134 com.google.protobuf.ByteString getV2NameBytes(); 135 } 136