Show / Hide Table of Contents

Class Message

A message in a stream.

Inheritance
object
Message
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.StreamingService.Models
Assembly: OCI.DotNetSDK.Streaming.dll
Syntax
public class Message

Properties

Key

Declaration
[Required(ErrorMessage = "Key is required.")]
[JsonProperty(PropertyName = "key")]
public byte[] Key { get; set; }
Property Value
Type Description
byte[]

The key associated with the message, expressed as a byte array.

Remarks

Required

Offset

Declaration
[Required(ErrorMessage = "Offset is required.")]
[JsonProperty(PropertyName = "offset")]
public long? Offset { get; set; }
Property Value
Type Description
long?

The offset of the message, which uniquely identifies it within the partition.

Remarks

Required

Partition

Declaration
[Required(ErrorMessage = "Partition is required.")]
[JsonProperty(PropertyName = "partition")]
public string Partition { get; set; }
Property Value
Type Description
string

The ID of the partition where the message is stored.

Remarks

Required

Stream

Declaration
[Required(ErrorMessage = "Stream is required.")]
[JsonProperty(PropertyName = "stream")]
public string Stream { get; set; }
Property Value
Type Description
string

The name of the stream that the message belongs to.

Remarks

Required

Timestamp

Declaration
[Required(ErrorMessage = "Timestamp is required.")]
[JsonProperty(PropertyName = "timestamp")]
public DateTime? Timestamp { get; set; }
Property Value
Type Description
DateTime?

The timestamp indicating when the server appended the message to the stream.

Remarks

Required

Value

Declaration
[Required(ErrorMessage = "Value is required.")]
[JsonProperty(PropertyName = "value")]
public byte[] Value { get; set; }
Property Value
Type Description
byte[]

The value associated with the message, expressed as a byte array.

Remarks

Required

In this article
Back to top