Class BytesValue (3.15.8)

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

Wrapper message for bytes.

The JSON representation for BytesValue is JSON string.

Inheritance

Object > BytesValue

Namespace

Google.Protobuf.WellKnownTypes

Assembly

Google.Protobuf.dll

Constructors

BytesValue()

public BytesValue()

BytesValue(BytesValue)

public BytesValue(BytesValue other)
Parameter
NameDescription
otherBytesValue

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<BytesValue> Parser { get; }
Property Value
TypeDescription
MessageParser<BytesValue>

Value

public ByteString Value { get; set; }

The bytes value.

Property Value
TypeDescription
ByteString

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public BytesValue Clone()
Returns
TypeDescription
BytesValue

Equals(BytesValue)

public bool Equals(BytesValue other)
Parameter
NameDescription
otherBytesValue
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(BytesValue)

public void MergeFrom(BytesValue other)
Parameter
NameDescription
otherBytesValue

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