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/intoto_statement.proto 19 20 package io.grafeas.v1; 21 22 public interface SubjectOrBuilder 23 extends 24 // @@protoc_insertion_point(interface_extends:grafeas.v1.Subject) 25 com.google.protobuf.MessageOrBuilder { 26 27 /** 28 * <code>string name = 1;</code> 29 * 30 * @return The name. 31 */ getName()32 java.lang.String getName(); 33 /** 34 * <code>string name = 1;</code> 35 * 36 * @return The bytes for name. 37 */ getNameBytes()38 com.google.protobuf.ByteString getNameBytes(); 39 40 /** 41 * 42 * 43 * <pre> 44 * `"<ALGORITHM>": "<HEX_VALUE>"` 45 * Algorithms can be e.g. sha256, sha512 46 * See 47 * https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet 48 * </pre> 49 * 50 * <code>map<string, string> digest = 2;</code> 51 */ getDigestCount()52 int getDigestCount(); 53 /** 54 * 55 * 56 * <pre> 57 * `"<ALGORITHM>": "<HEX_VALUE>"` 58 * Algorithms can be e.g. sha256, sha512 59 * See 60 * https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet 61 * </pre> 62 * 63 * <code>map<string, string> digest = 2;</code> 64 */ containsDigest(java.lang.String key)65 boolean containsDigest(java.lang.String key); 66 /** Use {@link #getDigestMap()} instead. */ 67 @java.lang.Deprecated getDigest()68 java.util.Map<java.lang.String, java.lang.String> getDigest(); 69 /** 70 * 71 * 72 * <pre> 73 * `"<ALGORITHM>": "<HEX_VALUE>"` 74 * Algorithms can be e.g. sha256, sha512 75 * See 76 * https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet 77 * </pre> 78 * 79 * <code>map<string, string> digest = 2;</code> 80 */ getDigestMap()81 java.util.Map<java.lang.String, java.lang.String> getDigestMap(); 82 /** 83 * 84 * 85 * <pre> 86 * `"<ALGORITHM>": "<HEX_VALUE>"` 87 * Algorithms can be e.g. sha256, sha512 88 * See 89 * https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet 90 * </pre> 91 * 92 * <code>map<string, string> digest = 2;</code> 93 */ 94 /* nullable */ getDigestOrDefault( java.lang.String key, java.lang.String defaultValue)95 java.lang.String getDigestOrDefault( 96 java.lang.String key, 97 /* nullable */ 98 java.lang.String defaultValue); 99 /** 100 * 101 * 102 * <pre> 103 * `"<ALGORITHM>": "<HEX_VALUE>"` 104 * Algorithms can be e.g. sha256, sha512 105 * See 106 * https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet 107 * </pre> 108 * 109 * <code>map<string, string> digest = 2;</code> 110 */ getDigestOrThrow(java.lang.String key)111 java.lang.String getDigestOrThrow(java.lang.String key); 112 } 113