Class Envelope.Builder (2.43.0)

public static final class Envelope.Builder extends GeneratedMessageV3.Builder<Envelope.Builder> implements EnvelopeOrBuilder

MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type.

Protobuf type grafeas.v1.Envelope

Implements

EnvelopeOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllSignatures(Iterable<? extends EnvelopeSignature> values)

public Envelope.Builder addAllSignatures(Iterable<? extends EnvelopeSignature> values)

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameter
Name Description
values Iterable<? extends io.grafeas.v1.EnvelopeSignature>
Returns
Type Description
Envelope.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSignatures(int index, EnvelopeSignature value)

public Envelope.Builder addSignatures(int index, EnvelopeSignature value)

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameters
Name Description
index int
value EnvelopeSignature
Returns
Type Description
Envelope.Builder

addSignatures(int index, EnvelopeSignature.Builder builderForValue)

public Envelope.Builder addSignatures(int index, EnvelopeSignature.Builder builderForValue)

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameters
Name Description
index int
builderForValue EnvelopeSignature.Builder
Returns
Type Description
Envelope.Builder

addSignatures(EnvelopeSignature value)

public Envelope.Builder addSignatures(EnvelopeSignature value)

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameter
Name Description
value EnvelopeSignature
Returns
Type Description
Envelope.Builder

addSignatures(EnvelopeSignature.Builder builderForValue)

public Envelope.Builder addSignatures(EnvelopeSignature.Builder builderForValue)

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameter
Name Description
builderForValue EnvelopeSignature.Builder
Returns
Type Description
Envelope.Builder

addSignaturesBuilder()

public EnvelopeSignature.Builder addSignaturesBuilder()

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Returns
Type Description
EnvelopeSignature.Builder

addSignaturesBuilder(int index)

public EnvelopeSignature.Builder addSignaturesBuilder(int index)

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameter
Name Description
index int
Returns
Type Description
EnvelopeSignature.Builder

build()

public Envelope build()
Returns
Type Description
Envelope

buildPartial()

public Envelope buildPartial()
Returns
Type Description
Envelope

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPayload()

public Envelope.Builder clearPayload()

bytes payload = 1;

Returns
Type Description
Envelope.Builder

This builder for chaining.

clearPayloadType()

public Envelope.Builder clearPayloadType()

string payload_type = 2;

Returns
Type Description
Envelope.Builder

This builder for chaining.

clearSignatures()

public Envelope.Builder clearSignatures()

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Returns
Type Description
Envelope.Builder

clone()

public Envelope.Builder clone()
Returns
Type Description
Envelope.Builder
Overrides

getDefaultInstanceForType()

public Envelope getDefaultInstanceForType()
Returns
Type Description
Envelope

getDescriptorForType()

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

getPayload()

public ByteString getPayload()

bytes payload = 1;

Returns
Type Description
ByteString

The payload.

getPayloadType()

public String getPayloadType()

string payload_type = 2;

Returns
Type Description
String

The payloadType.

getPayloadTypeBytes()

public ByteString getPayloadTypeBytes()

string payload_type = 2;

Returns
Type Description
ByteString

The bytes for payloadType.

getSignatures(int index)

public EnvelopeSignature getSignatures(int index)

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameter
Name Description
index int
Returns
Type Description
EnvelopeSignature

getSignaturesBuilder(int index)

public EnvelopeSignature.Builder getSignaturesBuilder(int index)

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameter
Name Description
index int
Returns
Type Description
EnvelopeSignature.Builder

getSignaturesBuilderList()

public List<EnvelopeSignature.Builder> getSignaturesBuilderList()

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Returns
Type Description
List<Builder>

getSignaturesCount()

public int getSignaturesCount()

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Returns
Type Description
int

getSignaturesList()

public List<EnvelopeSignature> getSignaturesList()

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Returns
Type Description
List<EnvelopeSignature>

getSignaturesOrBuilder(int index)

public EnvelopeSignatureOrBuilder getSignaturesOrBuilder(int index)

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameter
Name Description
index int
Returns
Type Description
EnvelopeSignatureOrBuilder

getSignaturesOrBuilderList()

public List<? extends EnvelopeSignatureOrBuilder> getSignaturesOrBuilderList()

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Returns
Type Description
List<? extends io.grafeas.v1.EnvelopeSignatureOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Envelope other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSignatures(int index)

public Envelope.Builder removeSignatures(int index)

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameter
Name Description
index int
Returns
Type Description
Envelope.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPayload(ByteString value)

public Envelope.Builder setPayload(ByteString value)

bytes payload = 1;

Parameter
Name Description
value ByteString

The payload to set.

Returns
Type Description
Envelope.Builder

This builder for chaining.

setPayloadType(String value)

public Envelope.Builder setPayloadType(String value)

string payload_type = 2;

Parameter
Name Description
value String

The payloadType to set.

Returns
Type Description
Envelope.Builder

This builder for chaining.

setPayloadTypeBytes(ByteString value)

public Envelope.Builder setPayloadTypeBytes(ByteString value)

string payload_type = 2;

Parameter
Name Description
value ByteString

The bytes for payloadType to set.

Returns
Type Description
Envelope.Builder

This builder for chaining.

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

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

setSignatures(int index, EnvelopeSignature value)

public Envelope.Builder setSignatures(int index, EnvelopeSignature value)

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameters
Name Description
index int
value EnvelopeSignature
Returns
Type Description
Envelope.Builder

setSignatures(int index, EnvelopeSignature.Builder builderForValue)

public Envelope.Builder setSignatures(int index, EnvelopeSignature.Builder builderForValue)

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameters
Name Description
index int
builderForValue EnvelopeSignature.Builder
Returns
Type Description
Envelope.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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