private void checkPathParameterConditions(Method method,FieldSelector selector){
  TypeRef type=selector.getType();
  WellKnownType wkt=type.getWellKnownType();
  if (type.isMap()) {
    error(method,"map field not allowed: reached via '%s' on message '%s'.",selector.toString(),getInputMessageName(method));
  }
 else   if (type.isRepeated()) {
    error(method,"repeated field not allowed: reached via '%s' on message '%s'.",selector,getInputMessageName(method));
  }
 else   if (type.isMessage() && !wkt.allowedAsPathParameter()) {
    error(method,"message field not allowed: reached via '%s' on message '%s'.",selector,getInputMessageName(method));
  }
}

private void checkPathParameterConditions ( Method method , FieldSelector selector ) { TypeRef type = selector . getType ( ) ; WellKnownType wkt = type . getWellKnownType ( ) ; if ( type . isMap ( ) ) { error ( method , "map field not allowed: reached via '%s' on message '%s'." , selector . toString ( ) , getInputMessageName ( method ) ) ; } else if ( type . isRepeated ( ) ) { error ( method , "repeated field not allowed: reached via '%s' on message '%s'." , selector , getInputMessageName ( method ) ) ; } else if ( type . isMessage ( ) && ! wkt . allowedAsPathParameter ( ) ) { error ( method , "message field not allowed: reached via '%s' on message '%s'." , selector , getInputMessageName ( method ) ) ; } }
checks context conditions for selectors bound to the http path .
