Class Subject.Builder (2.84.0)

public static final class Subject.Builder extends GeneratedMessage.Builder<Subject.Builder> implements SubjectOrBuilder

Protobuf type grafeas.v1.Subject

Implements

SubjectOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Subject build()
Returns
Type Description
Subject

buildPartial()

public Subject buildPartial()
Returns
Type Description
Subject

clear()

public Subject.Builder clear()
Returns
Type Description
Subject.Builder
Overrides

clearDigest()

public Subject.Builder clearDigest()
Returns
Type Description
Subject.Builder

clearName()

public Subject.Builder clearName()

string name = 1;

Returns
Type Description
Subject.Builder

This builder for chaining.

containsDigest(String key)

public boolean containsDigest(String key)

"<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;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public Subject getDefaultInstanceForType()
Returns
Type Description
Subject

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDigest() (deprecated)

public Map<String,String> getDigest()

Use #getDigestMap() instead.

Returns
Type Description
Map<String,String>

getDigestCount()

public 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;

Returns
Type Description
int

getDigestMap()

public Map<String,String> getDigestMap()

"<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;

Returns
Type Description
Map<String,String>

getDigestOrDefault(String key, String defaultValue)

public String getDigestOrDefault(String key, 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;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getDigestOrThrow(String key)

public String getDigestOrThrow(String key)

"<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;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableDigest() (deprecated)

public Map<String,String> getMutableDigest()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Subject.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Subject.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Subject.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Subject.Builder
Overrides

mergeFrom(Subject other)

public Subject.Builder mergeFrom(Subject other)
Parameter
Name Description
other Subject
Returns
Type Description
Subject.Builder

putAllDigest(Map<String,String> values)

public Subject.Builder putAllDigest(Map<String,String> values)

"<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;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Subject.Builder

putDigest(String key, String value)

public Subject.Builder putDigest(String key, String value)

"<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;

Parameters
Name Description
key String
value String
Returns
Type Description
Subject.Builder

removeDigest(String key)

public Subject.Builder removeDigest(String key)

"<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;

Parameter
Name Description
key String
Returns
Type Description
Subject.Builder

setName(String value)

public Subject.Builder setName(String value)

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Subject.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Subject.Builder setNameBytes(ByteString value)

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Subject.Builder

This builder for chaining.