code: def FieldName(self, name):
          
          # TODO(craigcitro): We shouldn't need to strip this name, but some
          # of the service names here are excessive. Fix the API and then
          # remove this.
          name = self.__StripName(name)
          if self.__name_convention == 'LOWER_CAMEL':
              name = Names.__ToLowerCamel(name)
          elif self.__name_convention == 'LOWER_WITH_UNDER':
              name = Names.__FromCamel(name)
          return Names.CleanName(name)
docs: Generate a valid field name from name.