Class Payload
Represents some binary (byte array) data (ex: activity input parameters or workflow result) with
metadata which describes this binary data (format, encoding, encryption, etc). Serialization
of the data may be user-defined.
Implements
Google.Protobuf.IBufferMessage
Assembly: Temporalio.dll
Syntax
public sealed class Payload : Google.Protobuf.IMessage<Payload>, Google.Protobuf.IBufferMessage
Constructors
Payload()
Declaration
Payload(Payload)
Declaration
public Payload(Payload other)
Parameters
Type |
Name |
Description |
Payload |
other |
|
Fields
DataFieldNumber
Field number for the "data" field.
Declaration
public const int DataFieldNumber = null
Field Value
Field number for the "metadata" field.
Declaration
public const int MetadataFieldNumber = null
Field Value
Properties
Data
Declaration
public Google.Protobuf.ByteString Data { get; set; }
Property Value
Type |
Description |
Google.Protobuf.ByteString |
|
Descriptor
Declaration
public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
Type |
Description |
Google.Protobuf.Reflection.MessageDescriptor |
|
Declaration
public Google.Protobuf.Collections.MapField<string, Google.Protobuf.ByteString> Metadata { get; }
Property Value
Type |
Description |
Google.Protobuf.Collections.MapField<String, Google.Protobuf.ByteString> |
|
Parser
Declaration
public static Google.Protobuf.MessageParser<Payload> Parser { get; }
Property Value
Type |
Description |
Google.Protobuf.MessageParser<Payload> |
|
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Clone()
Declaration
Returns
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
Object |
other |
|
Returns
Equals(Payload)
Declaration
public bool Equals(Payload other)
Parameters
Type |
Name |
Description |
Payload |
other |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Declaration
public void MergeFrom(Google.Protobuf.CodedInputStream input)
Parameters
Type |
Name |
Description |
Google.Protobuf.CodedInputStream |
input |
|
MergeFrom(Payload)
Declaration
public void MergeFrom(Payload other)
Parameters
Type |
Name |
Description |
Payload |
other |
|
ToString()
Declaration
public override string ToString()
Returns
WriteTo(Google.Protobuf.CodedOutputStream)
Declaration
public void WriteTo(Google.Protobuf.CodedOutputStream output)
Parameters
Type |
Name |
Description |
Google.Protobuf.CodedOutputStream |
output |
|
Implements
Google.Protobuf.IBufferMessage