components/sync/PRESUBMIT.py
def FieldNumberToPrototypeString(field_number):
  """Converts a field number enum reference to an EntitySpecifics string.
  Converts a reference to the field number enum to the corresponding
  proto data type string.
  Args:
    field_number: string representation of a field number enum reference
  Returns:
    A string that is the corresponding proto field data type. e.g.
    FieldNumberToPrototypeString('EntitySpecifics::kAppFieldNumber')
    => 'AppSpecifics'
  """
  return field_number.replace(FIELD_NUMBER_PREFIX, '').replace(
    'FieldNumber', 'Specifics')
Converts a field number enum reference to an EntitySpecifics string.
  Converts a reference to the field number enum to the corresponding
  proto data type string.
  Args:
    field_number: string representation of a field number enum reference
  Returns:
    A string that is the corresponding proto field data type. e.g.
    FieldNumberToPrototypeString('EntitySpecifics::kAppFieldNumber')
    => 'AppSpecifics'
  
Converts a field number enum reference to an EntitySpecifics string.
Converts a reference to the field number enum to the corresponding
proto data type string.
Converts a field number enum reference to an EntitySpecifics string . Converts a reference to the field number enum to the corresponding proto data type string .
def FieldNumberToPrototypeString(field_number):
  return field_number.replace(FIELD_NUMBER_PREFIX, '').replace(
    'FieldNumber', 'Specifics')
def FieldNumberToPrototypeString ( field_number ) : return field_number . replace ( FIELD_NUMBER_PREFIX , '' ) . replace ( 'FieldNumber' , 'Specifics' )
Converts a field number enum reference to an EntitySpecifics string.
Converts a field number enum reference to an EntitySpecifics string .
"""Converts a field number enum reference to an EntitySpecifics string.
  Converts a reference to the field number enum to the corresponding
  proto data type string.
  Args:
    field_number: string representation of a field number enum reference
  Returns:
    A string that is the corresponding proto field data type. e.g.
    FieldNumberToPrototypeString('EntitySpecifics::kAppFieldNumber')
    => 'AppSpecifics'
  """
A string that is the corresponding proto field data type. e.g.
FieldNumberToPrototypeString('EntitySpecifics::kAppFieldNumber')
> 'AppSpecifics'
A string that is the corresponding proto field data type . e . g . FieldNumberToPrototypeString ( ' EntitySpecifics :: kAppFieldNumber ' ) > ' AppSpecifics '
field_number
string representation of a field number enum reference
string representation of a field number enum reference