Class Subject.Builder (2.4.3)

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

Protobuf type grafeas.v1.Subject

Implements

SubjectOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Subject.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Subject.Builder
Overrides

build()

public Subject build()
Returns
TypeDescription
Subject

buildPartial()

public Subject buildPartial()
Returns
TypeDescription
Subject

clear()

public Subject.Builder clear()
Returns
TypeDescription
Subject.Builder
Overrides

clearDigest()

public Subject.Builder clearDigest()
Returns
TypeDescription
Subject.Builder

clearField(Descriptors.FieldDescriptor field)

public Subject.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Subject.Builder
Overrides

clearName()

public Subject.Builder clearName()

string name = 1;

Returns
TypeDescription
Subject.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Subject.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Subject.Builder
Overrides

clone()

public Subject.Builder clone()
Returns
TypeDescription
Subject.Builder
Overrides

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
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public Subject getDefaultInstanceForType()
Returns
TypeDescription
Subject

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDigest()

public Map<String,String> getDigest()

Use #getDigestMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getMutableDigest()

public Map<String,String> getMutableDigest()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Subject.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Subject.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Subject.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Subject.Builder
Overrides

mergeFrom(Subject other)

public Subject.Builder mergeFrom(Subject other)
Parameter
NameDescription
otherSubject
Returns
TypeDescription
Subject.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Subject.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Subject.Builder
Overrides

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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
Subject.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Subject.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Subject.Builder
Overrides

setName(String value)

public Subject.Builder setName(String value)

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Subject.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Subject.Builder setNameBytes(ByteString value)

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Subject.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Subject.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Subject.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Subject.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Subject.Builder
Overrides