iot_v1.types.FieldMask() 怎么来的?

iot_v1.types.FieldMask() How did it come?

代码:

device_path = client.device_path(
        project_id, cloud_region, registry_id, device_id)
    mask = iot_v1.types.FieldMask()
    mask.paths.append('config')
    mask.paths.append('gateway_config')
    device = client.get_device(client.list_devices(parent=path, field_mask=mask))

这个 FieldMask 从哪里来的?

字段掩码是:The fields of the Device resource to be returned in the response. The fields id and num_id are always returned, along with any other fields specified. Source.

它来自 defined protobuf types,它是 IoT 包的一部分。