Class ListUpdate
ListUpdate is used for updated APIs where 'repeated string' field is modified.
public sealed class ListUpdate : IMessage<ListUpdate>, IEquatable<ListUpdate>, IDeepCloneable<ListUpdate>, IBufferMessage, IMessage
- Inheritance
-
ListUpdate
- Implements
-
IMessage<ListUpdate>IDeepCloneable<ListUpdate>IBufferMessageIMessage
- Inherited Members
Constructors
ListUpdate()
public ListUpdate()
ListUpdate(ListUpdate)
public ListUpdate(ListUpdate other)
Parameters
otherListUpdate
Fields
AddFieldNumber
Field number for the "add" field.
public const int AddFieldNumber = 2
Field Value
ClearFieldNumber
Field number for the "clear" field.
public const int ClearFieldNumber = 4
Field Value
RemoveFieldNumber
Field number for the "remove" field.
public const int RemoveFieldNumber = 3
Field Value
SetFieldNumber
Field number for the "set" field.
public const int SetFieldNumber = 1
Field Value
Properties
Add
append items to a list, avoiding duplicates
public RepeatedField<string> Add { get; }
Property Value
- RepeatedField<string>
Clear
sets the list to an empty list
public bool Clear { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Parser
public static MessageParser<ListUpdate> Parser { get; }
Property Value
- MessageParser<ListUpdate>
Remove
delete items from a list
public RepeatedField<string> Remove { get; }
Property Value
- RepeatedField<string>
Set
set the field to a new list
public RepeatedField<string> Set { get; }
Property Value
- RepeatedField<string>
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
Clone()
Creates a deep clone of this object.
public ListUpdate Clone()
Returns
- ListUpdate
A deep clone of this object.
Equals(ListUpdate)
public bool Equals(ListUpdate other)
Parameters
otherListUpdate
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(ListUpdate)
Merges the given message into this one.
public void MergeFrom(ListUpdate other)
Parameters
otherListUpdate
Remarks
See the user guide for precise merge semantics.
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.