Class Scalar.Types.String
- a string with a charset/collation
Inheritance
System.Object
Scalar.Types.String
Implements
Google.Protobuf.IBufferMessage
Google.Protobuf.IMessage
Assembly: MySql.Data.dll
Version: 9.3.0
Syntax
public sealed class String : IMessage<Scalar.Types.String>, IEquatable<Scalar.Types.String>, IDeepCloneable<Scalar.Types.String>, IBufferMessage, IMessage
Constructors
String()
Declaration
String(Scalar.Types.String)
Declaration
public String(Scalar.Types.String other)
Parameters
Fields
CollationFieldNumber
Field number for the "collation" field.
Declaration
public const int CollationFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
ValueFieldNumber
Field number for the "value" field.
Declaration
public const int ValueFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
Properties
Collation
Declaration
public ulong Collation { get; set; }
Property Value
Type |
Description |
System.UInt64 |
|
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Type |
Description |
Google.Protobuf.Reflection.MessageDescriptor |
|
HasCollation
Gets whether the "collation" field is set
Declaration
public bool HasCollation { get; }
Property Value
Type |
Description |
System.Boolean |
|
HasValue
Gets whether the "value" field is set
Declaration
public bool HasValue { get; }
Property Value
Type |
Description |
System.Boolean |
|
Parser
Declaration
public static MessageParser<Scalar.Types.String> Parser { get; }
Property Value
Value
Declaration
public ByteString Value { get; set; }
Property Value
Type |
Description |
Google.Protobuf.ByteString |
|
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
ClearCollation()
Clears the value of the "collation" field
Declaration
public void ClearCollation()
ClearValue()
Clears the value of the "value" field
Declaration
Clone()
Declaration
public Scalar.Types.String Clone()
Returns
Equals(Scalar.Types.String)
Declaration
public bool Equals(Scalar.Types.String other)
Parameters
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()
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type |
Name |
Description |
Google.Protobuf.CodedInputStream |
input |
|
MergeFrom(Scalar.Types.String)
Declaration
public void MergeFrom(Scalar.Types.String other)
Parameters
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