Search Results for

    Show / Hide Table of Contents

    Class Scalar

    a scalar

    Inheritance
    System.Object
    Scalar
    Implements
    Google.Protobuf.IMessage<Scalar>
    System.IEquatable<Scalar>
    Google.Protobuf.IDeepCloneable<Scalar>
    Google.Protobuf.IBufferMessage
    Google.Protobuf.IMessage
    Namespace: Mysqlx.Datatypes
    Assembly: MySql.Data.dll
    Version: 9.3.0
    Syntax
    public sealed class Scalar : IMessage<Scalar>, IEquatable<Scalar>, IDeepCloneable<Scalar>, IBufferMessage, IMessage

    Constructors

    Scalar()

    Declaration
    public Scalar()

    Scalar(Scalar)

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

    Fields

    TypeFieldNumber

    Field number for the "type" field.

    Declaration
    public const int TypeFieldNumber = 1
    Field Value
    Type Description
    System.Int32

    VBoolFieldNumber

    Field number for the "v_bool" field.

    Declaration
    public const int VBoolFieldNumber = 8
    Field Value
    Type Description
    System.Int32

    VDoubleFieldNumber

    Field number for the "v_double" field.

    Declaration
    public const int VDoubleFieldNumber = 6
    Field Value
    Type Description
    System.Int32

    VFloatFieldNumber

    Field number for the "v_float" field.

    Declaration
    public const int VFloatFieldNumber = 7
    Field Value
    Type Description
    System.Int32

    VOctetsFieldNumber

    Field number for the "v_octets" field.

    Declaration
    public const int VOctetsFieldNumber = 5
    Field Value
    Type Description
    System.Int32

    VSignedIntFieldNumber

    Field number for the "v_signed_int" field.

    Declaration
    public const int VSignedIntFieldNumber = 2
    Field Value
    Type Description
    System.Int32

    VStringFieldNumber

    Field number for the "v_string" field.

    Declaration
    public const int VStringFieldNumber = 9
    Field Value
    Type Description
    System.Int32

    VUnsignedIntFieldNumber

    Field number for the "v_unsigned_int" field.

    Declaration
    public const int VUnsignedIntFieldNumber = 3
    Field Value
    Type Description
    System.Int32

    Properties

    Descriptor

    Declaration
    public static MessageDescriptor Descriptor { get; }
    Property Value
    Type Description
    Google.Protobuf.Reflection.MessageDescriptor

    HasType

    Gets whether the "type" field is set

    Declaration
    public bool HasType { get; }
    Property Value
    Type Description
    System.Boolean

    HasVBool

    Gets whether the "v_bool" field is set

    Declaration
    public bool HasVBool { get; }
    Property Value
    Type Description
    System.Boolean

    HasVDouble

    Gets whether the "v_double" field is set

    Declaration
    public bool HasVDouble { get; }
    Property Value
    Type Description
    System.Boolean

    HasVFloat

    Gets whether the "v_float" field is set

    Declaration
    public bool HasVFloat { get; }
    Property Value
    Type Description
    System.Boolean

    HasVSignedInt

    Gets whether the "v_signed_int" field is set

    Declaration
    public bool HasVSignedInt { get; }
    Property Value
    Type Description
    System.Boolean

    HasVUnsignedInt

    Gets whether the "v_unsigned_int" field is set

    Declaration
    public bool HasVUnsignedInt { get; }
    Property Value
    Type Description
    System.Boolean

    Parser

    Declaration
    public static MessageParser<Scalar> Parser { get; }
    Property Value
    Type Description
    Google.Protobuf.MessageParser<Scalar>

    Type

    Declaration
    public Scalar.Types.Type Type { get; set; }
    Property Value
    Type Description
    Scalar.Types.Type

    VBool

    Declaration
    public bool VBool { get; set; }
    Property Value
    Type Description
    System.Boolean

    VDouble

    Declaration
    public double VDouble { get; set; }
    Property Value
    Type Description
    System.Double

    VFloat

    Declaration
    public float VFloat { get; set; }
    Property Value
    Type Description
    System.Single

    VOctets

    4 is unused, was Null which doesn't have a storage anymore

    Declaration
    public Scalar.Types.Octets VOctets { get; set; }
    Property Value
    Type Description
    Scalar.Types.Octets

    VSignedInt

    Declaration
    public long VSignedInt { get; set; }
    Property Value
    Type Description
    System.Int64

    VString

    Declaration
    public Scalar.Types.String VString { get; set; }
    Property Value
    Type Description
    Scalar.Types.String

    VUnsignedInt

    Declaration
    public ulong VUnsignedInt { get; set; }
    Property Value
    Type Description
    System.UInt64

    Methods

    CalculateSize()

    Declaration
    public int CalculateSize()
    Returns
    Type Description
    System.Int32

    ClearType()

    Clears the value of the "type" field

    Declaration
    public void ClearType()

    ClearVBool()

    Clears the value of the "v_bool" field

    Declaration
    public void ClearVBool()

    ClearVDouble()

    Clears the value of the "v_double" field

    Declaration
    public void ClearVDouble()

    ClearVFloat()

    Clears the value of the "v_float" field

    Declaration
    public void ClearVFloat()

    ClearVSignedInt()

    Clears the value of the "v_signed_int" field

    Declaration
    public void ClearVSignedInt()

    ClearVUnsignedInt()

    Clears the value of the "v_unsigned_int" field

    Declaration
    public void ClearVUnsignedInt()

    Clone()

    Declaration
    public Scalar Clone()
    Returns
    Type Description
    Scalar

    Equals(Scalar)

    Declaration
    public bool Equals(Scalar other)
    Parameters
    Type Name Description
    Scalar other
    Returns
    Type Description
    System.Boolean

    Equals(Object)

    Declaration
    public override bool Equals(object other)
    Parameters
    Type Name Description
    System.Object other
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()

    MergeFrom(CodedInputStream)

    Declaration
    public void MergeFrom(CodedInputStream input)
    Parameters
    Type Name Description
    Google.Protobuf.CodedInputStream input

    MergeFrom(Scalar)

    Declaration
    public void MergeFrom(Scalar other)
    Parameters
    Type Name Description
    Scalar other

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    WriteTo(CodedOutputStream)

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

    Explicit Interface Implementations

    IBufferMessage.InternalMergeFrom(ref ParseContext)

    Declaration
    void IBufferMessage.InternalMergeFrom(ref ParseContext input)
    Parameters
    Type Name Description
    Google.Protobuf.ParseContext input

    IBufferMessage.InternalWriteTo(ref WriteContext)

    Declaration
    void IBufferMessage.InternalWriteTo(ref WriteContext output)
    Parameters
    Type Name Description
    Google.Protobuf.WriteContext output

    IMessage.Descriptor

    Declaration
    MessageDescriptor IMessage.Descriptor { get; }
    Returns
    Type Description
    Google.Protobuf.Reflection.MessageDescriptor

    Implements

    Google.Protobuf.IMessage<T>
    System.IEquatable<T>
    Google.Protobuf.IDeepCloneable<T>
    Google.Protobuf.IBufferMessage
    Google.Protobuf.IMessage
    In This Article
    • Constructors
      • Scalar()
      • Scalar(Scalar)
    • Fields
      • TypeFieldNumber
      • VBoolFieldNumber
      • VDoubleFieldNumber
      • VFloatFieldNumber
      • VOctetsFieldNumber
      • VSignedIntFieldNumber
      • VStringFieldNumber
      • VUnsignedIntFieldNumber
    • Properties
      • Descriptor
      • HasType
      • HasVBool
      • HasVDouble
      • HasVFloat
      • HasVSignedInt
      • HasVUnsignedInt
      • Parser
      • Type
      • VBool
      • VDouble
      • VFloat
      • VOctets
      • VSignedInt
      • VString
      • VUnsignedInt
    • Methods
      • CalculateSize()
      • ClearType()
      • ClearVBool()
      • ClearVDouble()
      • ClearVFloat()
      • ClearVSignedInt()
      • ClearVUnsignedInt()
      • Clone()
      • Equals(Scalar)
      • Equals(Object)
      • GetHashCode()
      • MergeFrom(CodedInputStream)
      • MergeFrom(Scalar)
      • ToString()
      • WriteTo(CodedOutputStream)
    • Explicit Interface Implementations
      • IBufferMessage.InternalMergeFrom(ref ParseContext)
      • IBufferMessage.InternalWriteTo(ref WriteContext)
      • IMessage.Descriptor
    • Implements
    Back to top Copyright © 2021, 2025, Oracle and/or its affiliates.