Couchbase .NET SDK | 3.8.0
Search Results for

    Show / Hide Table of Contents

    Class UpsertRequest

    Inheritance
    object
    UpsertRequest
    Implements
    IMessage<UpsertRequest>
    IEquatable<UpsertRequest>
    IDeepCloneable<UpsertRequest>
    IBufferMessage
    IMessage
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Couchbase.Protostellar.KV.V1
    Assembly: Couchbase.NetClient.dll
    Syntax
    public sealed class UpsertRequest : IMessage<UpsertRequest>, IEquatable<UpsertRequest>, IDeepCloneable<UpsertRequest>, IBufferMessage, IMessage

    Constructors

    | Edit this page View Source

    UpsertRequest()

    Declaration
    public UpsertRequest()
    | Edit this page View Source

    UpsertRequest(UpsertRequest)

    Declaration
    public UpsertRequest(UpsertRequest other)
    Parameters
    Type Name Description
    UpsertRequest other

    Fields

    | Edit this page View Source

    BucketNameFieldNumber

    Field number for the "bucket_name" field.

    Declaration
    public const int BucketNameFieldNumber = 1
    Field Value
    Type Description
    int
    | Edit this page View Source

    CollectionNameFieldNumber

    Field number for the "collection_name" field.

    Declaration
    public const int CollectionNameFieldNumber = 3
    Field Value
    Type Description
    int
    | Edit this page View Source

    ContentFieldNumber

    Field number for the "content" field.

    Declaration
    public const int ContentFieldNumber = 5
    Field Value
    Type Description
    int
    | Edit this page View Source

    ContentFlagsFieldNumber

    Field number for the "content_flags" field.

    Declaration
    public const int ContentFlagsFieldNumber = 11
    Field Value
    Type Description
    int
    | Edit this page View Source

    DurabilityLevelFieldNumber

    Field number for the "durability_level" field.

    Declaration
    public const int DurabilityLevelFieldNumber = 9
    Field Value
    Type Description
    int
    | Edit this page View Source

    ExpirySecsFieldNumber

    Field number for the "expiry_secs" field.

    Declaration
    public const int ExpirySecsFieldNumber = 10
    Field Value
    Type Description
    int
    | Edit this page View Source

    ExpiryTimeFieldNumber

    Field number for the "expiry_time" field.

    Declaration
    public const int ExpiryTimeFieldNumber = 7
    Field Value
    Type Description
    int
    | Edit this page View Source

    KeyFieldNumber

    Field number for the "key" field.

    Declaration
    public const int KeyFieldNumber = 4
    Field Value
    Type Description
    int
    | Edit this page View Source

    PreserveExpiryOnExistingFieldNumber

    Field number for the "preserve_expiry_on_existing" field.

    Declaration
    public const int PreserveExpiryOnExistingFieldNumber = 12
    Field Value
    Type Description
    int
    | Edit this page View Source

    ScopeNameFieldNumber

    Field number for the "scope_name" field.

    Declaration
    public const int ScopeNameFieldNumber = 2
    Field Value
    Type Description
    int

    Properties

    | Edit this page View Source

    BucketName

    Declaration
    public string BucketName { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    CollectionName

    Declaration
    public string CollectionName { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Content

    Declaration
    public ByteString Content { get; set; }
    Property Value
    Type Description
    ByteString
    | Edit this page View Source

    ContentFlags

    Declaration
    public uint ContentFlags { get; set; }
    Property Value
    Type Description
    uint
    | Edit this page View Source

    Descriptor

    Declaration
    public static MessageDescriptor Descriptor { get; }
    Property Value
    Type Description
    MessageDescriptor
    | Edit this page View Source

    DurabilityLevel

    Declaration
    public DurabilityLevel DurabilityLevel { get; set; }
    Property Value
    Type Description
    DurabilityLevel
    | Edit this page View Source

    ExpiryCase

    Declaration
    public UpsertRequest.ExpiryOneofCase ExpiryCase { get; }
    Property Value
    Type Description
    UpsertRequest.ExpiryOneofCase
    | Edit this page View Source

    ExpirySecs

    Declaration
    public uint ExpirySecs { get; set; }
    Property Value
    Type Description
    uint
    | Edit this page View Source

    ExpiryTime

    Declaration
    public Timestamp ExpiryTime { get; set; }
    Property Value
    Type Description
    Timestamp
    | Edit this page View Source

    HasDurabilityLevel

    Gets whether the "durability_level" field is set

    Declaration
    public bool HasDurabilityLevel { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    HasPreserveExpiryOnExisting

    Gets whether the "preserve_expiry_on_existing" field is set

    Declaration
    public bool HasPreserveExpiryOnExisting { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Key

    Declaration
    public string Key { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Parser

    Declaration
    public static MessageParser<UpsertRequest> Parser { get; }
    Property Value
    Type Description
    MessageParser<UpsertRequest>
    | Edit this page View Source

    PreserveExpiryOnExisting

    Declaration
    public bool PreserveExpiryOnExisting { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    ScopeName

    Declaration
    public string ScopeName { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    CalculateSize()

    Calculates the size of this message in Protocol Buffer wire format, in bytes.

    Declaration
    public int CalculateSize()
    Returns
    Type Description
    int

    The number of bytes required to write this message to a coded output stream.

    | Edit this page View Source

    ClearDurabilityLevel()

    Clears the value of the "durability_level" field

    Declaration
    public void ClearDurabilityLevel()
    | Edit this page View Source

    ClearExpiry()

    Declaration
    public void ClearExpiry()
    | Edit this page View Source

    ClearPreserveExpiryOnExisting()

    Clears the value of the "preserve_expiry_on_existing" field

    Declaration
    public void ClearPreserveExpiryOnExisting()
    | Edit this page View Source

    Clone()

    Creates a deep clone of this object.

    Declaration
    public UpsertRequest Clone()
    Returns
    Type Description
    UpsertRequest

    A deep clone of this object.

    | Edit this page View Source

    Equals(UpsertRequest)

    Declaration
    public bool Equals(UpsertRequest other)
    Parameters
    Type Name Description
    UpsertRequest other
    Returns
    Type Description
    bool
    | Edit this page View Source

    Equals(object)

    Declaration
    public override bool Equals(object other)
    Parameters
    Type Name Description
    object other
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    | Edit this page View Source

    MergeFrom(UpsertRequest)

    Merges the given message into this one.

    Declaration
    public void MergeFrom(UpsertRequest other)
    Parameters
    Type Name Description
    UpsertRequest other
    Remarks

    See the user guide for precise merge semantics.

    | Edit this page View Source

    MergeFrom(CodedInputStream)

    Merges the data from the specified coded input stream with the current message.

    Declaration
    public void MergeFrom(CodedInputStream input)
    Parameters
    Type Name Description
    CodedInputStream input
    Remarks

    See the user guide for precise merge semantics.

    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    | Edit this page View Source

    WriteTo(CodedOutputStream)

    Writes the data to the given coded output stream.

    Declaration
    public void WriteTo(CodedOutputStream output)
    Parameters
    Type Name Description
    CodedOutputStream output

    Coded output stream to write the data to. Must not be null.

    Implements

    Google.Protobuf.IMessage<T>
    IEquatable<T>
    Google.Protobuf.IDeepCloneable<T>
    Google.Protobuf.IBufferMessage
    Google.Protobuf.IMessage
    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.