Class Subject.Builder (2.49.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Subject.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Subject.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public Subject.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Subject.Builder
Overrides

clearName()

public Subject.Builder clearName()

string name = 1;

Returns
Type Description
Subject.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Subject.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Subject.Builder
Overrides

clone()

public Subject.Builder clone()
Returns
Type Description
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
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 GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Subject.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
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

setField(Descriptors.FieldDescriptor field, Object value)

public Subject.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Subject.Builder
Overrides

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.

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

public Subject.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Subject.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Subject.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Subject.Builder
Overrides