Class StringValue (3.15.8)

public sealed class StringValue : object, IMessage<StringValue>, IEquatable<StringValue>, IDeepCloneable<StringValue>, IBufferMessage, IMessage

Wrapper message for string.

The JSON representation for StringValue is JSON string.

Inheritance

Object > StringValue

Namespace

Google.Protobuf.WellKnownTypes

Assembly

Google.Protobuf.dll

Constructors

StringValue()

public StringValue()

StringValue(StringValue)

public StringValue(StringValue other)
Parameter
NameDescription
otherStringValue

Fields

ValueFieldNumber

public const int ValueFieldNumber = null

Field number for the "value" field.

Field Value
TypeDescription
Int32

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }
Property Value
TypeDescription
MessageDescriptor

Parser

public static MessageParser<StringValue> Parser { get; }
Property Value
TypeDescription
MessageParser<StringValue>

Value

public string Value { get; set; }

The string value.

Property Value
TypeDescription
String

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public StringValue Clone()
Returns
TypeDescription
StringValue

Equals(StringValue)

public bool Equals(StringValue other)
Parameter
NameDescription
otherStringValue
Returns
TypeDescription
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
NameDescription
otherObject
Returns
TypeDescription
Boolean

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream

MergeFrom(StringValue)

public void MergeFrom(StringValue other)
Parameter
NameDescription
otherStringValue

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream

Explicit Interface Implementations

IBufferMessage.InternalMergeFrom(ref ParseContext)

void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameter
NameDescription
inputParseContext

IBufferMessage.InternalWriteTo(ref WriteContext)

void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameter
NameDescription
outputWriteContext

IMessage.Descriptor

MessageDescriptor IMessage.Descriptor { get; }
Returns
TypeDescription
MessageDescriptor