import math


def _int_32_value(client, value):
    """Converts a value to a protocol buffer Int32 wrapper.

    Args:
      client: A google.ads.google_ads.client.GoogleAdsClient instance.
      value: A number to wrap, truncated to the nearest integer.

    Returns:
      The value wrapped in a google.ads.googleads_v2.types.Int32.
    """
    int_32_val = client.get_type('Int32Value', version='v3')
    int_32_val.value = math.trunc(value)
    return int_32_val