Class InTotoSlsaProvenanceV1.ResourceDescriptor.Builder (2.55.0)

public static final class InTotoSlsaProvenanceV1.ResourceDescriptor.Builder extends GeneratedMessageV3.Builder<InTotoSlsaProvenanceV1.ResourceDescriptor.Builder> implements InTotoSlsaProvenanceV1.ResourceDescriptorOrBuilder

Protobuf type grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InTotoSlsaProvenanceV1.ResourceDescriptor build()
Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor

buildPartial()

public InTotoSlsaProvenanceV1.ResourceDescriptor buildPartial()
Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor

clear()

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder clear()
Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder
Overrides

clearAnnotations()

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder clearAnnotations()
Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

clearContent()

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder clearContent()

bytes content = 4;

Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

This builder for chaining.

clearDigest()

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder clearDigest()
Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

clearDownloadLocation()

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder clearDownloadLocation()

string download_location = 5;

Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMediaType()

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder clearMediaType()

string media_type = 6;

Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

This builder for chaining.

clearName()

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder clearName()

string name = 1;

Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUri()

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder clearUri()

string uri = 2;

Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

This builder for chaining.

clone()

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder clone()
Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder
Overrides

containsAnnotations(String key)

public boolean containsAnnotations(String key)

map<string, .google.protobuf.Value> annotations = 7;

Parameter
Name Description
key String
Returns
Type Description
boolean

containsDigest(String key)

public boolean containsDigest(String key)

map<string, string> digest = 3;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAnnotations() (deprecated)

public Map<String,Value> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
Type Description
Map<String,Value>

getAnnotationsCount()

public int getAnnotationsCount()

map<string, .google.protobuf.Value> annotations = 7;

Returns
Type Description
int

getAnnotationsMap()

public Map<String,Value> getAnnotationsMap()

map<string, .google.protobuf.Value> annotations = 7;

Returns
Type Description
Map<String,Value>

getAnnotationsOrDefault(String key, Value defaultValue)

public Value getAnnotationsOrDefault(String key, Value defaultValue)

map<string, .google.protobuf.Value> annotations = 7;

Parameters
Name Description
key String
defaultValue Value
Returns
Type Description
Value

getAnnotationsOrThrow(String key)

public Value getAnnotationsOrThrow(String key)

map<string, .google.protobuf.Value> annotations = 7;

Parameter
Name Description
key String
Returns
Type Description
Value

getContent()

public ByteString getContent()

bytes content = 4;

Returns
Type Description
ByteString

The content.

getDefaultInstanceForType()

public InTotoSlsaProvenanceV1.ResourceDescriptor getDefaultInstanceForType()
Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor

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()

map<string, string> digest = 3;

Returns
Type Description
int

getDigestMap()

public Map<String,String> getDigestMap()

map<string, string> digest = 3;

Returns
Type Description
Map<String,String>

getDigestOrDefault(String key, String defaultValue)

public String getDigestOrDefault(String key, String defaultValue)

map<string, string> digest = 3;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getDigestOrThrow(String key)

public String getDigestOrThrow(String key)

map<string, string> digest = 3;

Parameter
Name Description
key String
Returns
Type Description
String

getDownloadLocation()

public String getDownloadLocation()

string download_location = 5;

Returns
Type Description
String

The downloadLocation.

getDownloadLocationBytes()

public ByteString getDownloadLocationBytes()

string download_location = 5;

Returns
Type Description
ByteString

The bytes for downloadLocation.

getMediaType()

public String getMediaType()

string media_type = 6;

Returns
Type Description
String

The mediaType.

getMediaTypeBytes()

public ByteString getMediaTypeBytes()

string media_type = 6;

Returns
Type Description
ByteString

The bytes for mediaType.

getMutableAnnotations() (deprecated)

public Map<String,Value> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,Value>

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.

getUri()

public String getUri()

string uri = 2;

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

string uri = 2;

Returns
Type Description
ByteString

The bytes for uri.

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 InTotoSlsaProvenanceV1.ResourceDescriptor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(InTotoSlsaProvenanceV1.ResourceDescriptor other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InTotoSlsaProvenanceV1.ResourceDescriptor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder
Overrides

putAllAnnotations(Map<String,Value> values)

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder putAllAnnotations(Map<String,Value> values)

map<string, .google.protobuf.Value> annotations = 7;

Parameter
Name Description
values Map<String,Value>
Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

putAllDigest(Map<String,String> values)

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

map<string, string> digest = 3;

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

putAnnotations(String key, Value value)

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder putAnnotations(String key, Value value)

map<string, .google.protobuf.Value> annotations = 7;

Parameters
Name Description
key String
value Value
Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

putAnnotationsBuilderIfAbsent(String key)

public Value.Builder putAnnotationsBuilderIfAbsent(String key)

map<string, .google.protobuf.Value> annotations = 7;

Parameter
Name Description
key String
Returns
Type Description
Builder

putDigest(String key, String value)

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder putDigest(String key, String value)

map<string, string> digest = 3;

Parameters
Name Description
key String
value String
Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

removeAnnotations(String key)

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder removeAnnotations(String key)

map<string, .google.protobuf.Value> annotations = 7;

Parameter
Name Description
key String
Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

removeDigest(String key)

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder removeDigest(String key)

map<string, string> digest = 3;

Parameter
Name Description
key String
Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

setContent(ByteString value)

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder setContent(ByteString value)

bytes content = 4;

Parameter
Name Description
value ByteString

The content to set.

Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

This builder for chaining.

setDownloadLocation(String value)

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder setDownloadLocation(String value)

string download_location = 5;

Parameter
Name Description
value String

The downloadLocation to set.

Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

This builder for chaining.

setDownloadLocationBytes(ByteString value)

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder setDownloadLocationBytes(ByteString value)

string download_location = 5;

Parameter
Name Description
value ByteString

The bytes for downloadLocation to set.

Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMediaType(String value)

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder setMediaType(String value)

string media_type = 6;

Parameter
Name Description
value String

The mediaType to set.

Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

This builder for chaining.

setMediaTypeBytes(ByteString value)

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder setMediaTypeBytes(ByteString value)

string media_type = 6;

Parameter
Name Description
value ByteString

The bytes for mediaType to set.

Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

This builder for chaining.

setName(String value)

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder setName(String value)

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

This builder for chaining.

setNameBytes(ByteString value)

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder setNameBytes(ByteString value)

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder setUri(String value)

string uri = 2;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

This builder for chaining.

setUriBytes(ByteString value)

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder setUriBytes(ByteString value)

string uri = 2;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

This builder for chaining.