Nsdk_Vps_VpsDebuggerDataEvent
Declaration
nonisolated struct Nsdk_Vps_VpsDebuggerDataEventConstructors
Constructor
Summary
Overload 1
Summary
Creates a new message by decoding the given string containing a
serialized message in JSON format.
Throws
SwiftProtobufErrororJSONDecodingErrorif decoding fails.
Overload 2
Summary
Creates a new message by decoding the given SwiftProtobufContiguousBytes
containing a serialized message in JSON format, interpreting the data as UTF-8 encoded
text.
Throws
SwiftProtobufErrororJSONDecodingErrorif decoding fails.
Overload 3
Summary
Creates a new message by decoding the given Data containing a serialized message
in JSON format, interpreting the data as UTF-8 encoded text.
Throws
SwiftProtobufErrororJSONDecodingErrorif decoding fails.
Overload 4
Summary
Creates a new message by decoding the given string containing a
serialized message in Protocol Buffer text format.
Throws
SwiftProtobufErroron failure.
Overload 5
Summary
Creates a new message by decoding the given string containing a
serialized message in JSON format.
Throws
SwiftProtobufErrororJSONDecodingErrorif decoding fails.
Overload 6
Summary
Creates a new message by decoding the given SwiftProtobufContiguousBytes
containing a serialized message in JSON format, interpreting the data as UTF-8 encoded
text.
Throws
SwiftProtobufErrororJSONDecodingErrorif decoding fails.
Overload 7
Summary
Creates a new message by decoding the given Data containing a serialized message
in JSON format, interpreting the data as UTF-8 encoded text.
Throws
SwiftProtobufErrororJSONDecodingErrorif decoding fails.
Overload 8
Summary
Creates a new message by decoding the given string containing a
serialized message in Protocol Buffer text format.
Throws
TextFormatDecodingErroron failure.
Overload 9
Summary
Initialize this message from the provided google.protobuf.Any
well-known type.
This corresponds to the unpack method in the Google C++ API.
If the Any object was decoded from Protobuf Binary or JSON
format, then the enclosed field data was stored and is not
fully decoded until you unpack the Any object into a message.
As such, this method will typically need to perform a full
deserialization of the enclosed data and can fail for any
reason that deserialization can fail.
See Google_Protobuf_Any.unpackTo() for more discussion.
Throws
- an instance of
AnyUnpackError,JSONDecodingError, orBinaryDecodingErroron failure.
Overload 10
Summary
Creates a new message by decoding the given Foundation/ContiguousBytes value
containing a serialized message in Protocol Buffer binary format.
Throws
SwiftProtobufErrorif decoding fails.
Overload 11
Summary
Creates a new message by decoding the given SwiftProtobufContiguousBytes value
containing a serialized message in Protocol Buffer binary format.
Throws
BinaryDecodingErrorif decoding fails.
Overload 12
Summary
Creates a new message by decoding the bytes provided by a RawSpan
containing a serialized message in Protocol Buffer binary format.
Throws
BinaryDecodingErrorif decoding fails.
Overload 13
Summary
Creates a new message by decoding the given Foundation/ContiguousBytes value
containing a serialized message in Protocol Buffer binary format.
Throws
SwiftProtobufErrorif decoding fails.
Overload 14
Summary
Creates a new message by decoding the given Data value
containing a serialized message in Protocol Buffer binary format.
Throws
BinaryDecodingErrorif decoding fails.
Properties
| Name | Type | Summary |
|---|---|---|
| var anchor | Nsdk_Vps_Anchor | - |
| var assetReceived | Nsdk_Vps_AssetReceived | - |
| var bevLocalizationUpdate | Nsdk_Vps_BevLocalizationUpdate | - |
| var customData | Nsdk_Vps_CustomData | - |
| var debugDescription | String | A description generated by recursively visiting all fields in the message, including messages. |
| var frame | Nsdk_Vps_Frame | - |
| var geoLocationTracking | Nsdk_Vps_GeoLocationTracking | - |
| var graphEdgeUpdate | Nsdk_Vps_GraphEdgeUpdate | - |
| var isInitialized | Bool | Generated proto2 messages that contain required fields, nested messages that contain required fields, and/or extensions will provide their own implementation of this property that tests that all required fields are set. Users of the generated code SHOULD NOT override this property. |
| var localizationUpdate | Nsdk_Vps_LocalizationUpdate | - |
| var mapNodeUpdate | Nsdk_Vps_MapNodeUpdate | - |
| var mapPoint2D | Nsdk_Vps_MapPoint2D | - |
| var networkRequestState | Nsdk_Vps_NetworkRequestState | - |
| static let protoMessageName | String | The fully-scoped name of the message from the original .proto file, including any relevant package name. |
| var slickLocalizationStats | Nsdk_Vps_LocalizationStats | - |
| var start | Nsdk_Vps_Start | - |
| var unknownFields | UnknownStorage | Some formats include enough information to transport fields that were not known at generation time. When encountered, they are stored here. |
| var vpsDebuggerEvent | Nsdk_Vps_VpsDebuggerDataEvent.OneOf_VpsDebuggerEvent? | - |
| var vpsLocalizationStats | Nsdk_Vps_LocalizationStats | - |
| var vpsSegmentTarget | Nsdk_Vps_VpsSegmentTarget | - |
Methods
| Name | Type | Summary |
|---|---|---|
| static array | [Self] | Creates a new array of messages by decoding the given string containing a serialized array of messages in JSON format. |
| mutating decodeMessage<D>(decoder | void | Decode all of the fields from the given decoder. This is a simple loop that repeatedly gets the next field number from decoder.nextFieldNumber() and then uses the number returnedand the type information from the original .proto file to decide what type of data should be decoded for that field. The corresponding method on the decoder is then called to get the field value. This is the core method used by the deserialization machinery. It is public to enable users to implement their own encoding formats byconforming to Decoder; it should not be called otherwise.Note that this is not specific to binary encodng; formats that use textual identifiers translate those to field numbers and also go through this to decode messages. |
| hash | void | A hash based on the message's full contents. |
| isEqualTo | Bool | Helper to compare Messages when not having a specific type to usenormal Equatable. Equatable is provided with specific generatedtypes. |
| static isPathValid | Bool | Checks whether the given path is valid for Message type. |
| jsonString | String | Returns a string containing the JSON serialization of the message. Unlike binary encoding, presence of required fields is not enforced when serializing to JSON. |
| jsonUTF8Bytes<Bytes>(options | Bytes | Returns a SwiftProtobufContiguousBytes containing the UTF-8 JSON serialization of the message.Unlike binary encoding, presence of required fields is not enforced when serializing to JSON. |
| jsonUTF8Data | Data | Returns a Data containing the UTF-8 JSON serialization of the message. Unlike binary encoding, presence of required fields is not enforced when serializing to JSON. |
| mutating merge<Bytes>(serializedBytes bytes | void | Updates the message by decoding the given SwiftProtobufContiguousBytes valuecontaining a serialized message in Protocol Buffer binary format into the receiver. |
| serializedBytes<Bytes>(partial | Bytes | Returns a SwiftProtobufContiguousBytes instance containing the Protocol Buffer binaryformat serialization of the message. |
| serializedData | Data | Returns a Data instance containing the Protocol Buffer binaryformat serialization of the message. |
| textFormatString | String | Returns a string containing the Protocol Buffer text format serialization of the message. Unlike binary encoding, presence of required fields is not enforced when serializing to text format. |
| traverse<V>(visitor | void | Traverses the fields of the message, calling the appropriate methods of the passed Visitor object.This is used internally by: * Protobuf binary serialization * JSON serialization (with some twists to account for specialty JSON) * Protobuf Text serialization * Hashable computationConceptually, serializers create visitor objects that are then passed recursively to every message and field via generated traverse methods. The details get a little involved due tothe need to allow particular messages to override particular behaviors for specific encodings, but the general idea is quite simple. |
| @discardableResult mutating trim | Bool | Removes from 'message' any field that is not represented in the given FieldMask. If the FieldMask is empty, does nothing. |
| static with | Self | Creates an instance of the message type on which this method is called, executes the given block passing the message in as its sole inoutargument, and then returns the message. This method acts essentially as a "builder" in that the initialization of the message is captured within the block, allowing the returned value to be set in an immutable variable. For example, let msg = MyMessage.with { $0.myField = "foo" } msg.myOtherField = 5 // error: msg is immutable |
Operators
| Name | Type | Summary |
|---|---|---|
| static func != | Bool | Returns a Boolean value indicating whether two values are not equal. Inequality is the inverse of equality. For any values a and b, a != bimplies that a == b is false.This is the default implementation of the not-equal-to operator ( !=)for any type that conforms to Equatable. |
| static func == | Bool | Returns a Boolean value indicating whether two values are equal. Equality is the inverse of inequality. For any values a and b,a == b implies that a != b is false. |
| static func == | Bool | Returns a Boolean value indicating whether two values are equal. Equality is the inverse of inequality. For any values a and b,a == b implies that a != b is false. |
Nested Types
Enums
| Name | Type | Summary |
|---|---|---|
| nonisolated OneOf_VpsDebuggerEvent | OneOf_VpsDebuggerEvent | - |
Relationships
conforms to: SwiftProtobuf.Message
Creates a new message with all of its fields initialized to their default
values.