package google.protobuf

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message Any

any.proto:128

`Any` contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message. Protobuf library provides support to pack/unpack Any values in the form of utility functions or additional generated methods of the Any type. Example 1: Pack and unpack a message in C++. Foo foo = ...; Any any; any.PackFrom(foo); ... if (any.UnpackTo(&foo)) { ... } Example 2: Pack and unpack a message in Java. Foo foo = ...; Any any = Any.pack(foo); ... if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } // or ... if (any.isSameTypeAs(Foo.getDefaultInstance())) { foo = any.unpack(Foo.getDefaultInstance()); } Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() any.Pack(foo) ... if any.Is(Foo.DESCRIPTOR): any.Unpack(foo) ... Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) if err != nil { ... } ... foo := &pb.Foo{} if err := any.UnmarshalTo(foo); err != nil { ... } The pack methods provided by protobuf library will by default use 'type.googleapis.com/full.type.name' as the type URL and the unpack methods only use the fully qualified type name after the last '/' in the type URL, for example "foo.bar.com/x/y.z" will yield type name "y.z". JSON ==== The JSON representation of an `Any` value uses the regular representation of the deserialized, embedded message, with an additional field `@type` which contains the type URL. Example: package google.profile; message Person { string first_name = 1; string last_name = 2; } { "@type": "type.googleapis.com/google.profile.Person", "firstName": <string>, "lastName": <string> } If the embedded message type is well-known and has a custom JSON representation, that representation will be embedded adding a field `value` which holds the custom JSON in addition to the `@type` field. Example (for message [google.protobuf.Duration][]): { "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" }

Used in: mullvad_daemon.management_interface.Relay

message BoolValue

wrappers.proto:104

Wrapper message for `bool`. The JSON representation for `BoolValue` is JSON `true` and `false`.

Used as request type in: mullvad_daemon.management_interface.ManagementService.PrepareRestartV2, mullvad_daemon.management_interface.ManagementService.SetAllowLan, mullvad_daemon.management_interface.ManagementService.SetAutoConnect, mullvad_daemon.management_interface.ManagementService.SetBlockWhenDisconnected, mullvad_daemon.management_interface.ManagementService.SetDaitaDirectOnly, mullvad_daemon.management_interface.ManagementService.SetEnableDaita, mullvad_daemon.management_interface.ManagementService.SetEnableIpv6, mullvad_daemon.management_interface.ManagementService.SetShowBetaReleases, mullvad_daemon.management_interface.ManagementService.SetSplitTunnelState

Used as response type in: mullvad_daemon.management_interface.ManagementService.ConnectTunnel, mullvad_daemon.management_interface.ManagementService.DisconnectTunnel, mullvad_daemon.management_interface.ManagementService.IsPerformingPostUpgrade, mullvad_daemon.management_interface.ManagementService.NeedFullDiskPermissions, mullvad_daemon.management_interface.ManagementService.ReconnectTunnel, mullvad_daemon.management_interface.ManagementService.TestApiAccessMethodById, mullvad_daemon.management_interface.ManagementService.TestCustomApiAccessMethod

message BytesValue

wrappers.proto:120

Wrapper message for `bytes`. The JSON representation for `BytesValue` is JSON string.

message DoubleValue

wrappers.proto:56

Wrapper message for `double`. The JSON representation for `DoubleValue` is JSON number.

message Duration

duration.proto:102

A Duration represents a signed, fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". It is related to Timestamp in that the difference between two Timestamp values is a Duration and it can be added or subtracted from a Timestamp. Range is approximately +-10,000 years. # Examples Example 1: Compute Duration from two Timestamps in pseudo code. Timestamp start = ...; Timestamp end = ...; Duration duration = ...; duration.seconds = end.seconds - start.seconds; duration.nanos = end.nanos - start.nanos; if (duration.seconds < 0 && duration.nanos > 0) { duration.seconds += 1; duration.nanos -= 1000000000; } else if (duration.seconds > 0 && duration.nanos < 0) { duration.seconds -= 1; duration.nanos += 1000000000; } Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. Timestamp start = ...; Duration duration = ...; Timestamp end = ...; end.seconds = start.seconds + duration.seconds; end.nanos = start.nanos + duration.nanos; if (end.nanos < 0) { end.seconds -= 1; end.nanos += 1000000000; } else if (end.nanos >= 1000000000) { end.seconds += 1; end.nanos -= 1000000000; } Example 3: Compute Duration from datetime.timedelta in Python. td = datetime.timedelta(days=3, minutes=10) duration = Duration() duration.FromTimedelta(td) # JSON Mapping In JSON format, the Duration type is encoded as a string rather than an object, where the string ends in the suffix "s" (indicating seconds) and is preceded by the number of seconds, with nanoseconds expressed as fractional seconds. For example, 3 seconds with 0 nanoseconds should be encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should be expressed in JSON format as "3.000000001s", and 3 seconds and 1 microsecond should be expressed in JSON format as "3.000001s".

Used as request type in: mullvad_daemon.management_interface.ManagementService.SetWireguardRotationInterval

Used as field type in: mullvad_daemon.management_interface.TunnelOptions.WireguardOptions

message Empty

empty.proto:51

A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

Used as request type in: mullvad_daemon.management_interface.ManagementService.CheckVolumes, mullvad_daemon.management_interface.ManagementService.ClearAccountHistory, mullvad_daemon.management_interface.ManagementService.ClearAllRelayOverrides, mullvad_daemon.management_interface.ManagementService.ClearCustomApiAccessMethods, mullvad_daemon.management_interface.ManagementService.ClearCustomLists, mullvad_daemon.management_interface.ManagementService.ClearSplitTunnelApps, mullvad_daemon.management_interface.ManagementService.ClearSplitTunnelProcesses, mullvad_daemon.management_interface.ManagementService.ConnectTunnel, mullvad_daemon.management_interface.ManagementService.CreateNewAccount, mullvad_daemon.management_interface.ManagementService.DisconnectTunnel, mullvad_daemon.management_interface.ManagementService.EventsListen, mullvad_daemon.management_interface.ManagementService.ExportJsonSettings, mullvad_daemon.management_interface.ManagementService.FactoryReset, mullvad_daemon.management_interface.ManagementService.GetAccountHistory, mullvad_daemon.management_interface.ManagementService.GetCurrentApiAccessMethod, mullvad_daemon.management_interface.ManagementService.GetCurrentVersion, mullvad_daemon.management_interface.ManagementService.GetDevice, mullvad_daemon.management_interface.ManagementService.GetExcludedProcesses, mullvad_daemon.management_interface.ManagementService.GetFeatureIndicators, mullvad_daemon.management_interface.ManagementService.GetRelayLocations, mullvad_daemon.management_interface.ManagementService.GetSettings, mullvad_daemon.management_interface.ManagementService.GetSplitTunnelProcesses, mullvad_daemon.management_interface.ManagementService.GetTunnelState, mullvad_daemon.management_interface.ManagementService.GetVersionInfo, mullvad_daemon.management_interface.ManagementService.GetWireguardKey, mullvad_daemon.management_interface.ManagementService.GetWwwAuthToken, mullvad_daemon.management_interface.ManagementService.InitPlayPurchase, mullvad_daemon.management_interface.ManagementService.IsPerformingPostUpgrade, mullvad_daemon.management_interface.ManagementService.LogoutAccount, mullvad_daemon.management_interface.ManagementService.NeedFullDiskPermissions, mullvad_daemon.management_interface.ManagementService.PrepareRestart, mullvad_daemon.management_interface.ManagementService.ReconnectTunnel, mullvad_daemon.management_interface.ManagementService.ResetSettings, mullvad_daemon.management_interface.ManagementService.ResetWireguardRotationInterval, mullvad_daemon.management_interface.ManagementService.RotateWireguardKey, mullvad_daemon.management_interface.ManagementService.UpdateDevice, mullvad_daemon.management_interface.ManagementService.UpdateRelayLocations

Used as response type in: mullvad_daemon.management_interface.ManagementService.AddSplitTunnelApp, mullvad_daemon.management_interface.ManagementService.AddSplitTunnelProcess, mullvad_daemon.management_interface.ManagementService.ApplyJsonSettings, mullvad_daemon.management_interface.ManagementService.CheckVolumes, mullvad_daemon.management_interface.ManagementService.ClearAccountHistory, mullvad_daemon.management_interface.ManagementService.ClearAllRelayOverrides, mullvad_daemon.management_interface.ManagementService.ClearCustomApiAccessMethods, mullvad_daemon.management_interface.ManagementService.ClearCustomLists, mullvad_daemon.management_interface.ManagementService.ClearSplitTunnelApps, mullvad_daemon.management_interface.ManagementService.ClearSplitTunnelProcesses, mullvad_daemon.management_interface.ManagementService.DeleteCustomList, mullvad_daemon.management_interface.ManagementService.DisableRelay, mullvad_daemon.management_interface.ManagementService.EnableRelay, mullvad_daemon.management_interface.ManagementService.FactoryReset, mullvad_daemon.management_interface.ManagementService.LoginAccount, mullvad_daemon.management_interface.ManagementService.LogoutAccount, mullvad_daemon.management_interface.ManagementService.PrepareRestart, mullvad_daemon.management_interface.ManagementService.PrepareRestartV2, mullvad_daemon.management_interface.ManagementService.RemoveApiAccessMethod, mullvad_daemon.management_interface.ManagementService.RemoveDevice, mullvad_daemon.management_interface.ManagementService.RemoveSplitTunnelApp, mullvad_daemon.management_interface.ManagementService.RemoveSplitTunnelProcess, mullvad_daemon.management_interface.ManagementService.ResetSettings, mullvad_daemon.management_interface.ManagementService.ResetWireguardRotationInterval, mullvad_daemon.management_interface.ManagementService.RotateWireguardKey, mullvad_daemon.management_interface.ManagementService.SetAllowLan, mullvad_daemon.management_interface.ManagementService.SetApiAccessMethod, mullvad_daemon.management_interface.ManagementService.SetAutoConnect, mullvad_daemon.management_interface.ManagementService.SetBlockWhenDisconnected, mullvad_daemon.management_interface.ManagementService.SetBridgeSettings, mullvad_daemon.management_interface.ManagementService.SetBridgeState, mullvad_daemon.management_interface.ManagementService.SetDaitaDirectOnly, mullvad_daemon.management_interface.ManagementService.SetDaitaSettings, mullvad_daemon.management_interface.ManagementService.SetDnsOptions, mullvad_daemon.management_interface.ManagementService.SetEnableDaita, mullvad_daemon.management_interface.ManagementService.SetEnableIpv6, mullvad_daemon.management_interface.ManagementService.SetObfuscationSettings, mullvad_daemon.management_interface.ManagementService.SetOpenvpnMssfix, mullvad_daemon.management_interface.ManagementService.SetQuantumResistantTunnel, mullvad_daemon.management_interface.ManagementService.SetRelayOverride, mullvad_daemon.management_interface.ManagementService.SetRelaySettings, mullvad_daemon.management_interface.ManagementService.SetShowBetaReleases, mullvad_daemon.management_interface.ManagementService.SetSplitTunnelState, mullvad_daemon.management_interface.ManagementService.SetWireguardMtu, mullvad_daemon.management_interface.ManagementService.SetWireguardRotationInterval, mullvad_daemon.management_interface.ManagementService.UpdateApiAccessMethod, mullvad_daemon.management_interface.ManagementService.UpdateCustomList, mullvad_daemon.management_interface.ManagementService.UpdateDevice, mullvad_daemon.management_interface.ManagementService.UpdateRelayLocations, mullvad_daemon.management_interface.ManagementService.VerifyPlayPurchase, talpid_openvpn_plugin.OpenvpnEventProxy.AuthFailed, talpid_openvpn_plugin.OpenvpnEventProxy.RoutePredown, talpid_openvpn_plugin.OpenvpnEventProxy.RouteUp, talpid_openvpn_plugin.OpenvpnEventProxy.Up

(message has no fields)

message FloatValue

wrappers.proto:64

Wrapper message for `float`. The JSON representation for `FloatValue` is JSON number.

message Int32Value

wrappers.proto:88

Wrapper message for `int32`. The JSON representation for `Int32Value` is JSON number.

Used as request type in: mullvad_daemon.management_interface.ManagementService.AddSplitTunnelProcess, mullvad_daemon.management_interface.ManagementService.RemoveSplitTunnelProcess

Used as response type in: mullvad_daemon.management_interface.ManagementService.GetSplitTunnelProcesses

message Int64Value

wrappers.proto:72

Wrapper message for `int64`. The JSON representation for `Int64Value` is JSON string.

message StringValue

wrappers.proto:112

Wrapper message for `string`. The JSON representation for `StringValue` is JSON string.

Used as request type in: mullvad_daemon.management_interface.ManagementService.AddSplitTunnelApp, mullvad_daemon.management_interface.ManagementService.ApplyJsonSettings, mullvad_daemon.management_interface.ManagementService.CreateCustomList, mullvad_daemon.management_interface.ManagementService.DeleteCustomList, mullvad_daemon.management_interface.ManagementService.DisableRelay, mullvad_daemon.management_interface.ManagementService.EnableRelay, mullvad_daemon.management_interface.ManagementService.GetAccountData, mullvad_daemon.management_interface.ManagementService.ListDevices, mullvad_daemon.management_interface.ManagementService.LoginAccount, mullvad_daemon.management_interface.ManagementService.RemoveSplitTunnelApp, mullvad_daemon.management_interface.ManagementService.SubmitVoucher

Used as response type in: mullvad_daemon.management_interface.ManagementService.CreateCustomList, mullvad_daemon.management_interface.ManagementService.CreateNewAccount, mullvad_daemon.management_interface.ManagementService.ExportJsonSettings, mullvad_daemon.management_interface.ManagementService.GetCurrentVersion, mullvad_daemon.management_interface.ManagementService.GetWwwAuthToken

Used as field type in: mullvad_daemon.management_interface.AccountHistory

message Timestamp

timestamp.proto:133

A Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on January 1, 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar backwards to year one. All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap second table is needed for interpretation, using a [24-hour linear smear](https://developers.google.com/time/smear). The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to that range, we ensure that we can convert to and from [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. # Examples Example 1: Compute Timestamp from POSIX `time()`. Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0); Example 2: Compute Timestamp from POSIX `gettimeofday()`. struct timeval tv; gettimeofday(&tv, NULL); Timestamp timestamp; timestamp.set_seconds(tv.tv_sec); timestamp.set_nanos(tv.tv_usec * 1000); Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. FILETIME ft; GetSystemTimeAsFileTime(&ft); UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. Timestamp timestamp; timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. long millis = System.currentTimeMillis(); Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) .setNanos((int) ((millis % 1000) * 1000000)).build(); Example 5: Compute Timestamp from Java `Instant.now()`. Instant now = Instant.now(); Timestamp timestamp = Timestamp.newBuilder().setSeconds(now.getEpochSecond()) .setNanos(now.getNano()).build(); Example 6: Compute Timestamp from current time in Python. timestamp = Timestamp() timestamp.GetCurrentTime() # JSON Mapping In JSON format, the Timestamp type is encoded as a string in the [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" where {year} is always expressed using four digits while {month}, {day}, {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone is required. A proto3 JSON serializer should always use UTC (as indicated by "Z") when printing the Timestamp type and a proto3 JSON parser should be able to accept both UTC and other timezones (as indicated by an offset). For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past 01:30 UTC on January 15, 2017. In JavaScript, one can convert a Date object to this format using the standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) method. In Python, a standard `datetime.datetime` object can be converted to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() ) to obtain a formatter capable of generating timestamps in this format.

Used in: mullvad_daemon.management_interface.AccountData, mullvad_daemon.management_interface.Device, mullvad_daemon.management_interface.PublicKey, mullvad_daemon.management_interface.VoucherSubmission

message UInt32Value

wrappers.proto:96

Wrapper message for `uint32`. The JSON representation for `UInt32Value` is JSON number.

Used as request type in: mullvad_daemon.management_interface.ManagementService.SetOpenvpnMssfix, mullvad_daemon.management_interface.ManagementService.SetWireguardMtu

message UInt64Value

wrappers.proto:80

Wrapper message for `uint64`. The JSON representation for `UInt64Value` is JSON string.