Show / Hide Table of Contents

    Class RequestMessage.Builder

    Allows to build RequestMessage objects.

    Inheritance
    System.Object
    RequestMessage.Builder
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Gremlin.Net.Driver.Messages
    Assembly: cs.temp.dll.dll
    Syntax
    public class Builder

    Methods

    AddArgument(String, Object)

    Adds and argument to the RequestMessage.

    Declaration
    public RequestMessage.Builder AddArgument(string key, object value)
    Parameters
    Type Name Description
    System.String key

    The key of the argument.

    System.Object value

    The value of the argument.

    Returns
    Type Description
    RequestMessage.Builder

    The RequestMessage.Builder.

    Create()

    Creates the RequestMessage given the settings provided to the RequestMessage.Builder.

    Declaration
    public RequestMessage Create()
    Returns
    Type Description
    RequestMessage

    The built RequestMessage.

    OverrideRequestId(Guid)

    Overrides the request identifier with a specified one, otherwise the RequestMessage.Builder will randomly generate a System.Guid.

    Declaration
    public RequestMessage.Builder OverrideRequestId(Guid requestId)
    Parameters
    Type Name Description
    System.Guid requestId

    The request identifier to use.

    Returns
    Type Description
    RequestMessage.Builder

    The RequestMessage.Builder.

    Processor(String)

    If this value is not set in the builder then the Processor defaults to the standard op processor (empty string).

    Declaration
    public RequestMessage.Builder Processor(string processor)
    Parameters
    Type Name Description
    System.String processor

    The name of the processor.

    Returns
    Type Description
    RequestMessage.Builder

    The RequestMessage.Builder.

    Back to top Copyright © 2018 The Apache Software Foundation