C# Class Google.Protobuf.WellKnownTypes.FieldMask

Inheritance: ICustomDiagnosticMessage
Datei anzeigen Open project: Arctium-Emulation/Project-WoW Class Usage Examples

Public Methods

Method Description
ToDiagnosticString ( ) : string

Returns a string representation of this FieldMask for diagnostic purposes.

Normally the returned value will be a JSON string value (including leading and trailing quotes) but when the value is non-normalized or out of range, a JSON object representation will be returned instead, including a warning. This is to avoid exceptions being thrown when trying to diagnose problems - the regular JSON formatter will still throw an exception for non-normalized values.

Private Methods

Method Description
ToJson ( IList paths, bool diagnosticOnly ) : string

Converts a timestamp specified in seconds/nanoseconds to a string.

If the value is a normalized duration in the range described in field_mask.proto, diagnosticOnly is ignored. Otherwise, if the parameter is true, a JSON object with a warning is returned; if it is false, an InvalidOperationException is thrown.

ValidatePath ( string input ) : bool

Camel-case converter with added strictness for field mask formatting.

Method Details

ToDiagnosticString() public method

Returns a string representation of this FieldMask for diagnostic purposes.
Normally the returned value will be a JSON string value (including leading and trailing quotes) but when the value is non-normalized or out of range, a JSON object representation will be returned instead, including a warning. This is to avoid exceptions being thrown when trying to diagnose problems - the regular JSON formatter will still throw an exception for non-normalized values.
public ToDiagnosticString ( ) : string
return string