/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: login5_identifiers.proto */

/* Do not generate deprecated warnings for self */
#ifndef PROTOBUF_C__NO_DEPRECATED
#define PROTOBUF_C__NO_DEPRECATED
#endif

#include "login5_identifiers.pb-c.h"
void   spotify__login5__v3__identifiers__phone_number__init
                     (Spotify__Login5__V3__Identifiers__PhoneNumber         *message)
{
  static const Spotify__Login5__V3__Identifiers__PhoneNumber init_value = SPOTIFY__LOGIN5__V3__IDENTIFIERS__PHONE_NUMBER__INIT;
  *message = init_value;
}
size_t spotify__login5__v3__identifiers__phone_number__get_packed_size
                     (const Spotify__Login5__V3__Identifiers__PhoneNumber *message)
{
  assert(message->base.descriptor == &spotify__login5__v3__identifiers__phone_number__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t spotify__login5__v3__identifiers__phone_number__pack
                     (const Spotify__Login5__V3__Identifiers__PhoneNumber *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &spotify__login5__v3__identifiers__phone_number__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t spotify__login5__v3__identifiers__phone_number__pack_to_buffer
                     (const Spotify__Login5__V3__Identifiers__PhoneNumber *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &spotify__login5__v3__identifiers__phone_number__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
Spotify__Login5__V3__Identifiers__PhoneNumber *
       spotify__login5__v3__identifiers__phone_number__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (Spotify__Login5__V3__Identifiers__PhoneNumber *)
     protobuf_c_message_unpack (&spotify__login5__v3__identifiers__phone_number__descriptor,
                                allocator, len, data);
}
void   spotify__login5__v3__identifiers__phone_number__free_unpacked
                     (Spotify__Login5__V3__Identifiers__PhoneNumber *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &spotify__login5__v3__identifiers__phone_number__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor spotify__login5__v3__identifiers__phone_number__field_descriptors[3] =
{
  {
    "number",
    1,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(Spotify__Login5__V3__Identifiers__PhoneNumber, number),
    NULL,
    &protobuf_c_empty_string,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "iso_country_code",
    2,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(Spotify__Login5__V3__Identifiers__PhoneNumber, iso_country_code),
    NULL,
    &protobuf_c_empty_string,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "country_calling_code",
    3,
    PROTOBUF_C_LABEL_NONE,
    PROTOBUF_C_TYPE_STRING,
    0,   /* quantifier_offset */
    offsetof(Spotify__Login5__V3__Identifiers__PhoneNumber, country_calling_code),
    NULL,
    &protobuf_c_empty_string,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned spotify__login5__v3__identifiers__phone_number__field_indices_by_name[] = {
  2,   /* field[2] = country_calling_code */
  1,   /* field[1] = iso_country_code */
  0,   /* field[0] = number */
};
static const ProtobufCIntRange spotify__login5__v3__identifiers__phone_number__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 3 }
};
const ProtobufCMessageDescriptor spotify__login5__v3__identifiers__phone_number__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "spotify.login5.v3.identifiers.PhoneNumber",
  "PhoneNumber",
  "Spotify__Login5__V3__Identifiers__PhoneNumber",
  "spotify.login5.v3.identifiers",
  sizeof(Spotify__Login5__V3__Identifiers__PhoneNumber),
  3,
  spotify__login5__v3__identifiers__phone_number__field_descriptors,
  spotify__login5__v3__identifiers__phone_number__field_indices_by_name,
  1,  spotify__login5__v3__identifiers__phone_number__number_ranges,
  (ProtobufCMessageInit) spotify__login5__v3__identifiers__phone_number__init,
  NULL,NULL,NULL    /* reserved[123] */
};
