/*
* Copyright 2019 The Grafeas Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: grafeas/v1/intoto_statement.proto
package io.grafeas.v1;
public interface SubjectOrBuilder
extends
// @@protoc_insertion_point(interface_extends:grafeas.v1.Subject)
com.google.protobuf.MessageOrBuilder {
/**
* string name = 1;
*
* @return The name.
*/
java.lang.String getName();
/**
* string name = 1;
*
* @return The bytes for name.
*/
com.google.protobuf.ByteString getNameBytes();
/**
*
*
*
* `"<ALGORITHM>": "<HEX_VALUE>"` * Algorithms can be e.g. sha256, sha512 * See * https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet ** *
map<string, string> digest = 2;
*/
int getDigestCount();
/**
*
*
* * `"<ALGORITHM>": "<HEX_VALUE>"` * Algorithms can be e.g. sha256, sha512 * See * https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet ** *
map<string, string> digest = 2;
*/
boolean containsDigest(java.lang.String key);
/** Use {@link #getDigestMap()} instead. */
@java.lang.Deprecated
java.util.Map* `"<ALGORITHM>": "<HEX_VALUE>"` * Algorithms can be e.g. sha256, sha512 * See * https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet ** *
map<string, string> digest = 2;
*/
java.util.Map* `"<ALGORITHM>": "<HEX_VALUE>"` * Algorithms can be e.g. sha256, sha512 * See * https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet ** *
map<string, string> digest = 2;
*/
/* nullable */
java.lang.String getDigestOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
*
*
* * `"<ALGORITHM>": "<HEX_VALUE>"` * Algorithms can be e.g. sha256, sha512 * See * https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet ** *
map<string, string> digest = 2;
*/
java.lang.String getDigestOrThrow(java.lang.String key);
}