Class Envelope.Builder (2.2.3)

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
TypeDescription
Descriptor

Methods

addAllSignatures(Iterable<? extends EnvelopeSignature> values)

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

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameter
NameDescription
valuesIterable<? extends io.grafeas.v1.EnvelopeSignature>
Returns
TypeDescription
Envelope.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSignatures(int index, EnvelopeSignature value)

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

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameters
NameDescription
indexint
valueEnvelopeSignature
Returns
TypeDescription
Envelope.Builder

addSignatures(int index, EnvelopeSignature.Builder builderForValue)

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

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameters
NameDescription
indexint
builderForValueEnvelopeSignature.Builder
Returns
TypeDescription
Envelope.Builder

addSignatures(EnvelopeSignature value)

public Envelope.Builder addSignatures(EnvelopeSignature value)

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameter
NameDescription
valueEnvelopeSignature
Returns
TypeDescription
Envelope.Builder

addSignatures(EnvelopeSignature.Builder builderForValue)

public Envelope.Builder addSignatures(EnvelopeSignature.Builder builderForValue)

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameter
NameDescription
builderForValueEnvelopeSignature.Builder
Returns
TypeDescription
Envelope.Builder

addSignaturesBuilder()

public EnvelopeSignature.Builder addSignaturesBuilder()

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Returns
TypeDescription
EnvelopeSignature.Builder

addSignaturesBuilder(int index)

public EnvelopeSignature.Builder addSignaturesBuilder(int index)

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
EnvelopeSignature.Builder

build()

public Envelope build()
Returns
TypeDescription
Envelope

buildPartial()

public Envelope buildPartial()
Returns
TypeDescription
Envelope

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPayload()

public Envelope.Builder clearPayload()

bytes payload = 1;

Returns
TypeDescription
Envelope.Builder

This builder for chaining.

clearPayloadType()

public Envelope.Builder clearPayloadType()

string payload_type = 2;

Returns
TypeDescription
Envelope.Builder

This builder for chaining.

clearSignatures()

public Envelope.Builder clearSignatures()

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Returns
TypeDescription
Envelope.Builder

clone()

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

getDefaultInstanceForType()

public Envelope getDefaultInstanceForType()
Returns
TypeDescription
Envelope

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPayload()

public ByteString getPayload()

bytes payload = 1;

Returns
TypeDescription
ByteString

The payload.

getPayloadType()

public String getPayloadType()

string payload_type = 2;

Returns
TypeDescription
String

The payloadType.

getPayloadTypeBytes()

public ByteString getPayloadTypeBytes()

string payload_type = 2;

Returns
TypeDescription
ByteString

The bytes for payloadType.

getSignatures(int index)

public EnvelopeSignature getSignatures(int index)

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
EnvelopeSignature

getSignaturesBuilder(int index)

public EnvelopeSignature.Builder getSignaturesBuilder(int index)

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
EnvelopeSignature.Builder

getSignaturesBuilderList()

public List<EnvelopeSignature.Builder> getSignaturesBuilderList()

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Returns
TypeDescription
List<Builder>

getSignaturesCount()

public int getSignaturesCount()

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Returns
TypeDescription
int

getSignaturesList()

public List<EnvelopeSignature> getSignaturesList()

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Returns
TypeDescription
List<EnvelopeSignature>

getSignaturesOrBuilder(int index)

public EnvelopeSignatureOrBuilder getSignaturesOrBuilder(int index)

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
EnvelopeSignatureOrBuilder

getSignaturesOrBuilderList()

public List<? extends EnvelopeSignatureOrBuilder> getSignaturesOrBuilderList()

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Returns
TypeDescription
List<? extends io.grafeas.v1.EnvelopeSignatureOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Envelope other)

public Envelope.Builder mergeFrom(Envelope other)
Parameter
NameDescription
otherEnvelope
Returns
TypeDescription
Envelope.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSignatures(int index)

public Envelope.Builder removeSignatures(int index)

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Envelope.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPayload(ByteString value)

public Envelope.Builder setPayload(ByteString value)

bytes payload = 1;

Parameter
NameDescription
valueByteString

The payload to set.

Returns
TypeDescription
Envelope.Builder

This builder for chaining.

setPayloadType(String value)

public Envelope.Builder setPayloadType(String value)

string payload_type = 2;

Parameter
NameDescription
valueString

The payloadType to set.

Returns
TypeDescription
Envelope.Builder

This builder for chaining.

setPayloadTypeBytes(ByteString value)

public Envelope.Builder setPayloadTypeBytes(ByteString value)

string payload_type = 2;

Parameter
NameDescription
valueByteString

The bytes for payloadType to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Envelope.Builder
Overrides

setSignatures(int index, EnvelopeSignature value)

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

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameters
NameDescription
indexint
valueEnvelopeSignature
Returns
TypeDescription
Envelope.Builder

setSignatures(int index, EnvelopeSignature.Builder builderForValue)

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

repeated .grafeas.v1.EnvelopeSignature signatures = 3;

Parameters
NameDescription
indexint
builderForValueEnvelopeSignature.Builder
Returns
TypeDescription
Envelope.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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